mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-07 16:08:51 +00:00
wrappercamerabinsrc: fix leak of drain query
gst_pad_peer_query doesn't take ownership of the query object
This commit is contained in:
parent
b74770bd05
commit
ef5b7ca93e
1 changed files with 4 additions and 1 deletions
|
@ -223,7 +223,10 @@ static void
|
||||||
gst_wrapper_camera_bin_src_set_output (GstWrapperCameraBinSrc * self,
|
gst_wrapper_camera_bin_src_set_output (GstWrapperCameraBinSrc * self,
|
||||||
GstPad * old_pad, GstPad * output_pad)
|
GstPad * old_pad, GstPad * output_pad)
|
||||||
{
|
{
|
||||||
gst_pad_peer_query (self->src_pad, gst_query_new_drain ());
|
GstQuery *drain = gst_query_new_drain ();
|
||||||
|
gst_pad_peer_query (self->src_pad, drain);
|
||||||
|
gst_query_unref (drain);
|
||||||
|
|
||||||
if (old_pad)
|
if (old_pad)
|
||||||
gst_ghost_pad_set_target (GST_GHOST_PAD (old_pad), NULL);
|
gst_ghost_pad_set_target (GST_GHOST_PAD (old_pad), NULL);
|
||||||
if (output_pad)
|
if (output_pad)
|
||||||
|
|
Loading…
Reference in a new issue