mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
parsebin: Put stream flags in GstStream
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/1082>
This commit is contained in:
parent
e15531bb9b
commit
e39d57b374
1 changed files with 3 additions and 1 deletions
|
@ -3932,8 +3932,10 @@ gst_parse_pad_stream_start_event (GstParsePad * parsepad, GstEvent * event)
|
|||
GstStream *stream = NULL;
|
||||
const gchar *stream_id = NULL;
|
||||
gboolean repeat_event = FALSE;
|
||||
GstStreamFlags streamflags;
|
||||
|
||||
gst_event_parse_stream_start (event, &stream_id);
|
||||
gst_event_parse_stream_flags (event, &streamflags);
|
||||
|
||||
if (parsepad->active_stream != NULL &&
|
||||
g_str_equal (parsepad->active_stream->stream_id, stream_id))
|
||||
|
@ -3968,7 +3970,7 @@ gst_parse_pad_stream_start_event (GstParsePad * parsepad, GstEvent * event)
|
|||
} else {
|
||||
stream =
|
||||
gst_stream_new (stream_id, NULL, GST_STREAM_TYPE_UNKNOWN,
|
||||
GST_STREAM_FLAG_NONE);
|
||||
streamflags);
|
||||
gst_object_replace ((GstObject **) & parsepad->active_stream,
|
||||
(GstObject *) stream);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue