videomixer2: Take into account new segments

Also forward the event downstream on the next opportunity.

https://bugzilla.gnome.org/show_bug.cgi?id=699793
This commit is contained in:
Mathieu Duponchelle 2013-05-06 23:43:03 +02:00 committed by Sebastian Dröge
parent 643450c9b8
commit 84ae670ab4

View 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: