videomixer2: Take into account new segments
authorMathieu Duponchelle <mathieu.duponchelle@epitech.eu>
Mon, 6 May 2013 21:43:03 +0000 (23:43 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Thu, 9 May 2013 14:18:54 +0000 (16:18 +0200)
Also forward the event downstream on the next opportunity.

https://bugzilla.gnome.org/show_bug.cgi?id=699793

gst/videomixer/videomixer2.c

index 09a8218..f34eb2f 100644 (file)
@@ -1703,10 +1703,11 @@ gst_videomixer2_sink_event (GstCollectPads * pads, GstCollectData * cdata,
       break;
     }
     case GST_EVENT_SEGMENT:{
-      GstSegment seg;
-      gst_event_copy_segment (event, &seg);
+      gst_event_copy_segment (event, &mix->segment);
 
-      g_assert (seg.format == GST_FORMAT_TIME);
+      mix->newseg_pending = TRUE;
+
+      g_assert (mix->segment.format == GST_FORMAT_TIME);
       break;
     }
     case GST_EVENT_FLUSH_STOP: