ivfparse: Send an initial NEWSEGMENT event
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Sat, 22 May 2010 07:08:46 +0000 (09:08 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Tue, 1 Jun 2010 09:19:46 +0000 (11:19 +0200)
gst/ivfparse/gstivfparse.c

index ac36b32..5996af9 100644 (file)
@@ -215,6 +215,9 @@ gst_ivfparse_chain (GstPad * pad, GstBuffer * buf)
         ivf->rate_num = rate_num;
         ivf->rate_den = rate_den;
 
+        gst_pad_push_event (ivf->srcpad, gst_event_new_new_segment (FALSE, 1.0,
+                GST_FORMAT_TIME, 0, -1, 0));
+
         /* move along */
         ivf->state = GST_IVFPARSE_DATA;
       } else {