mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 09:40:37 +00:00
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:
parent
27178f7aff
commit
8067bcc54f
1 changed files with 3 additions and 1 deletions
|
@ -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 *
|
||||
|
|
Loading…
Reference in a new issue