mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
mpegtsmux: parse force key unit events with the correct function
Otherwise it won't be parsed and bogus values would be used. https://bugzilla.gnome.org/show_bug.cgi?id=696032
This commit is contained in:
parent
b18a09dbec
commit
77bafb4dbc
1 changed files with 9 additions and 2 deletions
|
@ -1004,8 +1004,15 @@ check_pending_key_unit_event (GstEvent * pending_event, GstSegment * segment,
|
||||||
stream_time = gst_segment_to_stream_time (segment,
|
stream_time = gst_segment_to_stream_time (segment,
|
||||||
GST_FORMAT_TIME, timestamp);
|
GST_FORMAT_TIME, timestamp);
|
||||||
|
|
||||||
gst_video_event_parse_upstream_force_key_unit (pending_event,
|
if (GST_EVENT_TYPE (pending_event) == GST_EVENT_CUSTOM_DOWNSTREAM) {
|
||||||
NULL, &all_headers, &count);
|
gst_video_event_parse_downstream_force_key_unit (pending_event,
|
||||||
|
NULL, NULL, NULL, &all_headers, &count);
|
||||||
|
} else {
|
||||||
|
g_return_val_if_fail (GST_EVENT_TYPE (pending_event) ==
|
||||||
|
GST_EVENT_CUSTOM_UPSTREAM, NULL);
|
||||||
|
gst_video_event_parse_upstream_force_key_unit (pending_event, NULL,
|
||||||
|
&all_headers, &count);
|
||||||
|
}
|
||||||
|
|
||||||
event =
|
event =
|
||||||
gst_video_event_new_downstream_force_key_unit (timestamp, stream_time,
|
gst_video_event_new_downstream_force_key_unit (timestamp, stream_time,
|
||||||
|
|
Loading…
Reference in a new issue