mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-25 19:21:06 +00:00
decodebin3: Remove custom stream-start field if present
This field is added by urisourcebin so that we can avoid double-parsing. It's no longer needed after. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6690>
This commit is contained in:
parent
049665ccaa
commit
376aaa828d
1 changed files with 8 additions and 0 deletions
|
@ -1404,6 +1404,14 @@ sink_event_function (GstPad * sinkpad, GstDecodebin3 * dbin, GstEvent * event)
|
|||
|
||||
input->input_is_parsed = s
|
||||
&& gst_structure_has_field (s, "urisourcebin-parsed-data");
|
||||
if (input->input_is_parsed) {
|
||||
/* We remove the custom field from stream-start so as not to pollute
|
||||
* downstream */
|
||||
event = gst_event_make_writable (event);
|
||||
s = gst_event_get_structure (event);
|
||||
gst_structure_remove_field ((GstStructure *) s,
|
||||
"urisourcebin-parsed-data");
|
||||
}
|
||||
|
||||
/* Make sure group ids will be recalculated */
|
||||
input->group_id = GST_GROUP_ID_INVALID;
|
||||
|
|
Loading…
Reference in a new issue