mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-08 16:35:40 +00:00
cccombiner: Update segment according to video sink pad
Otherwise the following pipeline would preroll after 1000 hours: gst-launch-1.0 videotestsrc ! x264enc ! cccombiner ! fakesink silent=0 sync=1 -v Fixes #1355 Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1419>
This commit is contained in:
parent
0e075b4dbf
commit
bf38898af8
1 changed files with 9 additions and 0 deletions
|
@ -415,6 +415,15 @@ gst_cc_combiner_sink_event (GstAggregator * aggregator,
|
|||
|
||||
break;
|
||||
}
|
||||
case GST_EVENT_SEGMENT:{
|
||||
if (strcmp (GST_OBJECT_NAME (agg_pad), "sink") == 0) {
|
||||
const GstSegment *segment;
|
||||
|
||||
gst_event_parse_segment (event, &segment);
|
||||
gst_aggregator_update_segment (aggregator, segment);
|
||||
}
|
||||
break;
|
||||
}
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue