Let me make sure I understand the problem. If
I understand you correctly, you're saying that
if there's a pending ReadDone() in the ASF fileformat
and during that time you get a Seek(), then there's
a problem. Is that correct?
If so, that sounds like a bug in either the ASF
fileformat or the file object you are using. That
situation should certainly be allowed. In that
situation, the fileformat is free to immediately
call Read() on the file object. The file object,
if it gets a Seek() while there's a pending ReadDone(),
should immediately return ReadDone(HXR_CANCELLED, NULL).
The ASF fileformat may not be handling getting
an HXR_CANCELLED correctly.
Eric
=============================================
Eric Hyche (ehyche real.com)
Technical Lead
RealNetworks, Inc.
> -----Original Message-----
> From: Gang.Jia nokia.com [mailto:Gang.Jia nokia.com]
> Sent: Friday, March 07, 2008 3:04 PM
> To: ehyche real.com
> Cc: datatype-dev helixcommunity.org
> Subject: Question about the Seek in ASF file format
>
> Hi Eric
>
> We have a problem in playing WMA files. We are using
async
> read in audio playback so some times the ASF file
format can
> issue a Seek before the ReadDone() call back from the
file
> object. After the seek ASF file format is allowed to
send
> another Read. This will cause problem because the first
> ReadDone is still not back yet.
>
> My question is: Is it ok to allow the Seek while
waiting for
> the ReadDone in file format?
>
> Thanks,
> Gang
>
>
_______________________________________________
Datatype-dev mailing list
Datatype-dev helixcommunity.org
http://lists.helixcommunity.org/mailman/listinfo/da
tatype-dev
|