mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-25 11:11:08 +00:00
encodebasebin: Fix parser cleanup
When removing the parser from the stream group, it might not be linked to a combiner so this needs to be checked. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7670>
This commit is contained in:
parent
1c58b34345
commit
080b94b5e6
1 changed files with 3 additions and 1 deletions
|
@ -2431,7 +2431,9 @@ stream_group_free (GstEncodeBaseBin * ebin, StreamGroup * sgroup)
|
||||||
if (sgroup->parser) {
|
if (sgroup->parser) {
|
||||||
gst_element_set_state (sgroup->parser, GST_STATE_NULL);
|
gst_element_set_state (sgroup->parser, GST_STATE_NULL);
|
||||||
gst_element_unlink (sgroup->parser, sgroup->outfilter);
|
gst_element_unlink (sgroup->parser, sgroup->outfilter);
|
||||||
gst_element_unlink (sgroup->combiner, sgroup->parser);
|
if (sgroup->combiner) {
|
||||||
|
gst_element_unlink (sgroup->combiner, sgroup->parser);
|
||||||
|
}
|
||||||
gst_bin_remove ((GstBin *) ebin, sgroup->parser);
|
gst_bin_remove ((GstBin *) ebin, sgroup->parser);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue