don't try to find file length if streaming
authorMåns Rullgård <mans@mansr.com>
Thu, 19 May 2005 21:03:03 +0000 (21:03 +0000)
committerMåns Rullgård <mans@mansr.com>
Thu, 19 May 2005 21:03:03 +0000 (21:03 +0000)
Originally committed as revision 4283 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/ogg2.c

index 6f9638b..aee6d58 100644 (file)
@@ -450,9 +450,9 @@ ogg_get_length (AVFormatContext * s)
 {
     ogg_t *ogg = s->priv_data;
     int idx = -1, i;
-//FIXME: get the right ctx flag to know if is seekable or not
-//    if(ogg->f->flags & URL_FLAG_STREAMED)
-//  return 0;
+
+    if(s->pb.is_streamed)
+        return 0;
 
 // already set
     if (s->duration != AV_NOPTS_VALUE)