summaryrefslogtreecommitdiff
path: root/gst/encoding
diff options
context:
space:
mode:
authorAlban Browaeys <prahal@yahoo.com>2012-09-30 00:31:21 +0200
committerTim-Philipp Müller <tim@centricular.net>2012-09-30 15:08:17 +0100
commit579458f61373ef60fdc19c5fb46528d085c932cb (patch)
tree5bb74d7e979210347bb5569b7605b469fa543221 /gst/encoding
parent80e45be3d09f6dd9647f92aae4556161a4685b5b (diff)
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
Diffstat (limited to 'gst/encoding')
-rw-r--r--gst/encoding/gstencodebin.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gst/encoding/gstencodebin.c b/gst/encoding/gstencodebin.c
index db45f5711..a811b5d63 100644
--- a/gst/encoding/gstencodebin.c
+++ b/gst/encoding/gstencodebin.c
@@ -1793,7 +1793,9 @@ stream_group_free (GstEncodeBin * ebin, StreamGroup * sgroup)
/* Remove muxer request sink 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 (pad);
}