mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
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:
parent
643450c9b8
commit
84ae670ab4
1 changed files with 4 additions and 3 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue