? ext/ffmpeg/.gstffmpegdemux.c.swp
Index: ext/ffmpeg/gstffmpegdemux.c
===================================================================
RCS file: /cvs/gstreamer/gst-ffmpeg/ext/ffmpeg/gstffmpegdemux.c,v
retrieving revision 1.75
diff -u -w -p -r1.75 gstffmpegdemux.c
--- ext/ffmpeg/gstffmpegdemux.c	20 Apr 2007 10:51:37 -0000	1.75
+++ ext/ffmpeg/gstffmpegdemux.c	5 May 2007 22:06:57 -0000
@@ -704,8 +704,11 @@ gst_ffmpegdemux_src_query (GstPad * pad,
 
       timeduration =
           gst_ffmpeg_time_ff_to_gst (avstream->duration, avstream->time_base);
+      if (!(GST_CLOCK_TIME_IS_VALID (timeduration))) {
+	timeduration = demux->duration;
       if (!(GST_CLOCK_TIME_IS_VALID (timeduration)))
         break;
+      }
 
       switch (format) {
         case GST_FORMAT_TIME:
