avidemux: also determine duration in push mode
authorMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
Wed, 14 Oct 2009 09:55:33 +0000 (11:55 +0200)
committerMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
Wed, 14 Oct 2009 11:15:04 +0000 (13:15 +0200)
gst/avi/gstavidemux.c

index 3ea5f0c..9d47f9e 100644 (file)
@@ -2776,6 +2776,9 @@ skipping_done:
   GST_DEBUG ("Found movi chunk. Starting to stream data");
   avi->state = GST_AVI_DEMUX_MOVI;
 
+  /* no indexes in push mode, but it still sets some variables */
+  gst_avi_demux_calculate_durations_from_index (avi);
+
   /* create initial NEWSEGMENT event */
   if ((stop = avi->segment.stop) == GST_CLOCK_TIME_NONE)
     stop = avi->segment.duration;