mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 01:30:38 +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;
|
GstStream *stream = NULL;
|
||||||
const gchar *stream_id = NULL;
|
const gchar *stream_id = NULL;
|
||||||
gboolean repeat_event = FALSE;
|
gboolean repeat_event = FALSE;
|
||||||
|
GstStreamFlags streamflags;
|
||||||
|
|
||||||
gst_event_parse_stream_start (event, &stream_id);
|
gst_event_parse_stream_start (event, &stream_id);
|
||||||
|
gst_event_parse_stream_flags (event, &streamflags);
|
||||||
|
|
||||||
if (parsepad->active_stream != NULL &&
|
if (parsepad->active_stream != NULL &&
|
||||||
g_str_equal (parsepad->active_stream->stream_id, stream_id))
|
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 {
|
} else {
|
||||||
stream =
|
stream =
|
||||||
gst_stream_new (stream_id, NULL, GST_STREAM_TYPE_UNKNOWN,
|
gst_stream_new (stream_id, NULL, GST_STREAM_TYPE_UNKNOWN,
|
||||||
GST_STREAM_FLAG_NONE);
|
streamflags);
|
||||||
gst_object_replace ((GstObject **) & parsepad->active_stream,
|
gst_object_replace ((GstObject **) & parsepad->active_stream,
|
||||||
(GstObject *) stream);
|
(GstObject *) stream);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue