encodebin: Return a new reference of the pad for the "request-pad" signal

The GObject signal code assumes that the signal handlers return a
new reference or copy. Fixes bug #641927.
This commit is contained in:
Sebastian Dröge 2011-02-24 15:55:00 +01:00
parent 27178f7aff
commit 8067bcc54f

View file

@ -670,7 +670,9 @@ gst_encode_bin_request_new_pad (GstElement * element,
static GstPad *
gst_encode_bin_request_pad_signal (GstEncodeBin * encodebin, GstCaps * caps)
{
return request_pad_for_stream (encodebin, G_TYPE_NONE, NULL, caps);
GstPad *pad = request_pad_for_stream (encodebin, G_TYPE_NONE, NULL, caps);
return pad ? GST_PAD_CAST (gst_object_ref (pad)) : NULL;
}
static inline StreamGroup *