mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 08:46:40 +00:00
adaptivedemux: Fail cleanly if parsebin is not installed
Detect a failure to construct a parsebin and error out cleanly instead of trying to operate on a null pointer. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6969>
This commit is contained in:
parent
213726ca41
commit
0faec707a0
1 changed files with 3 additions and 0 deletions
|
@ -1154,6 +1154,9 @@ gst_adaptive_demux2_stream_create_parser (GstAdaptiveDemux2Stream * stream)
|
|||
}
|
||||
|
||||
stream->parsebin = gst_element_factory_make ("parsebin", NULL);
|
||||
if (stream->parsebin == NULL) {
|
||||
return FALSE;
|
||||
}
|
||||
if (tsdemux_type)
|
||||
g_signal_connect (stream->parsebin, "deep-element-added",
|
||||
(GCallback) parsebin_deep_element_added_cb, demux);
|
||||
|
|
Loading…
Reference in a new issue