mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
encodebin: muxer sink pad is not always a request pad
GstId3Mux sink pad is an always (static) pad. Thus releasing it as if a request pad triggers: (sound-juicer:11826): GStreamer-CRITICAL **: gst_element_release_request_pad: assertion `GST_PAD_PAD_TEMPLATE (pad) == NULL || GST_PAD_TEMPLATE_PRESENCE (GST_PAD_PAD_TEMPLATE (pad)) == GST_PAD_REQUEST' failed https://bugzilla.gnome.org/show_bug.cgi?id=685110
This commit is contained in:
parent
80e45be3d0
commit
579458f613
1 changed files with 3 additions and 1 deletions
|
@ -1793,7 +1793,9 @@ stream_group_free (GstEncodeBin * ebin, StreamGroup * sgroup)
|
||||||
|
|
||||||
/* Remove muxer request sink pad */
|
/* Remove muxer request sink pad */
|
||||||
gst_pad_unlink (tmppad, pad);
|
gst_pad_unlink (tmppad, pad);
|
||||||
gst_element_release_request_pad (ebin->muxer, pad);
|
if (GST_PAD_TEMPLATE_PRESENCE (GST_PAD_PAD_TEMPLATE (pad)) ==
|
||||||
|
GST_PAD_REQUEST)
|
||||||
|
gst_element_release_request_pad (ebin->muxer, pad);
|
||||||
gst_object_unref (tmppad);
|
gst_object_unref (tmppad);
|
||||||
gst_object_unref (pad);
|
gst_object_unref (pad);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue