changeset 766:ed249b9caa2f libavformat

don't try to find file length if streaming
author mru
date Thu, 19 May 2005 21:03:03 +0000
parents 769c2a9062c1
children cbfea73709bd
files ogg2.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/ogg2.c	Thu May 19 00:17:50 2005 +0000
+++ b/ogg2.c	Thu May 19 21:03:03 2005 +0000
@@ -450,9 +450,9 @@
 {
     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)