[gst-cvs] gst-plugins-good: avidemux: also determine duration in push mode

Mark Nauwelaerts mnauw at kemper.freedesktop.org
Wed Oct 14 04:26:26 PDT 2009


Module: gst-plugins-good
Branch: master
Commit: 92dd51e511afb8a0bb9051589158c8046021d338
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-good/commit/?id=92dd51e511afb8a0bb9051589158c8046021d338

Author: Mark Nauwelaerts <mark.nauwelaerts at collabora.co.uk>
Date:   Wed Oct 14 11:55:33 2009 +0200

avidemux: also determine duration in push mode

---

 gst/avi/gstavidemux.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/gst/avi/gstavidemux.c b/gst/avi/gstavidemux.c
index 3ea5f0c..9d47f9e 100644
--- a/gst/avi/gstavidemux.c
+++ b/gst/avi/gstavidemux.c
@@ -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;





More information about the Gstreamer-commits mailing list