# HG changeset patch # User aurel # Date 1198106778 0 # Node ID a41a1ec2213c1d65f7d06bda12c57de4980dd9a1 # Parent f51675f78402a305326bce150bea77166c284663 use proper url_is_streamed() API instead of messing with ByteIOContext internal is_streamed field diff -r f51675f78402 -r a41a1ec2213c oggdec.c --- a/oggdec.c Wed Dec 19 21:11:08 2007 +0000 +++ b/oggdec.c Wed Dec 19 23:26:18 2007 +0000 @@ -438,7 +438,7 @@ int idx = -1, i; offset_t size, end; - if(s->pb->is_streamed) + if(url_is_streamed(s->pb)) return 0; // already set diff -r f51675f78402 -r a41a1ec2213c utils.c --- a/utils.c Wed Dec 19 21:11:08 2007 +0000 +++ b/utils.c Wed Dec 19 23:26:18 2007 +0000 @@ -1603,7 +1603,7 @@ if ((!strcmp(ic->iformat->name, "mpeg") || !strcmp(ic->iformat->name, "mpegts")) && - file_size && !ic->pb->is_streamed) { + file_size && !url_is_streamed(ic->pb)) { /* get accurate estimate from the PTSes */ av_estimate_timings_from_pts(ic, old_offset); } else if (av_has_duration(ic)) {