mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
vaapidecodebin: fix a leaked display instance
The display returned by gst_vaapi_video_context_get_display() increments the references. Thus, we have to unref the returned display. Signed-off-by: Víctor Manuel Jáquez Leal <victorx.jaquez@intel.com> https://bugzilla.gnome.org/show_bug.cgi?id=757595
This commit is contained in:
parent
f182fcfb37
commit
a2611b7f35
1 changed files with 6 additions and 0 deletions
|
@ -314,6 +314,12 @@ gst_vaapi_decode_bin_handle_message (GstBin * bin, GstMessage * message)
|
||||||
activate_vpp (vaapidecbin);
|
activate_vpp (vaapidecbin);
|
||||||
|
|
||||||
bail:
|
bail:
|
||||||
|
if (display)
|
||||||
|
gst_vaapi_display_unref (display);
|
||||||
|
|
||||||
|
if (context)
|
||||||
|
gst_context_unref (context);
|
||||||
|
|
||||||
GST_BIN_CLASS (gst_vaapi_decode_bin_parent_class)->handle_message (bin,
|
GST_BIN_CLASS (gst_vaapi_decode_bin_parent_class)->handle_message (bin,
|
||||||
message);
|
message);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue