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/7756>
if (sgroup->parser) {
gst_element_set_state (sgroup->parser, GST_STATE_NULL);
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);
}