[MOVED FROM GST-P-FARSIGHT] emit the right timestamp in the newsegment event
authorOlivier Crete <olivier.crete@collabora.co.uk>
Fri, 25 Jul 2008 19:25:30 +0000 (19:25 +0000)
committerOlivier CrĂȘte <olivier.crete@collabora.co.uk>
Tue, 3 Mar 2009 19:34:07 +0000 (14:34 -0500)
20080725192530-3e2dc-a3cc0ce73fca181caee323d699d8576df916e8d3.gz

ext/mimic/gstmimdec.c

index e971e669611957c2e662a520a6085597705cb44c..a58a03ba6e313e5301f6d150631b6df714ef7ef3 100644 (file)
@@ -243,7 +243,7 @@ gst_mimdec_chain (GstPad *pad, GstBuffer *in)
       }
 
       event = gst_event_new_new_segment (FALSE, 1.0, GST_FORMAT_TIME,
-          0, -1, 0);
+          mimdec->gst_timestamp, -1, mimdec->gst_timestamp);
       GST_OBJECT_UNLOCK (mimdec);
       result = gst_pad_push_event (mimdec->srcpad, event);
       GST_OBJECT_LOCK (mimdec);