[FFmpeg-devel] [PATCH 2/7] avio: deprecate url_is_streamed

Michael Niedermayer michaelni
Tue Mar 8 12:28:03 CET 2011

On Mon, Mar 07, 2011 at 10:24:21AM -0500, Ronald S. Bultje wrote:
> Hi,
> On Sun, Mar 6, 2011 at 12:04 PM, Anton Khirnov <anton at khirnov.net> wrote:
> > AVIOContext.is_streamed field should be used directly instead.
> Since we're talking about API cleanup anyway. What is this function?
> A "stream" isn't a very useful concept. Why do demuxers want to know
> whether the input is a stream? They more likely want to know whether
> the input is seekable (like HTTP/1.1 with RangeRequest vs. HTTP/1.0 or
> a pipe/fifo), or whether seeking - if supported at all - is slow (like
> HTTP/1.1 with RangeRequest vs. a local seekable file). I see it used
> in a variety of different demuxers with a different implied meaning
> (seeking is slow vs. seeking is unsupported), and that is bad.

change it to:
seekable=0 //no seeking
seekable=1 //slow seeking
seekable=2 //fast seeking
enum could be used

Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Many that live deserve death. And some that die deserve life. Can you give
it to them? Then do not be too eager to deal out death in judgement. For
even the very wise cannot see all ends. -- Gandalf
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20110308/99fbf8c1/attachment.pgp>

More information about the ffmpeg-devel mailing list