diff options
author | Víctor Manuel Jáquez Leal <victorx.jaquez@intel.com> | 2015-11-02 19:05:07 +0100 |
---|---|---|
committer | Víctor Manuel Jáquez Leal <victorx.jaquez@intel.com> | 2015-11-09 15:50:14 +0100 |
commit | a2611b7f35ef34677eda6e7c149690e5a5a6bcc2 (patch) | |
tree | 5f0b91217893651473f422732fe9c8c60078e46f | |
parent | f182fcfb379344690292c52542f92a9e7f0bf1a3 (diff) | |
download | gst-vaapi-a2611b7f35ef34677eda6e7c149690e5a5a6bcc2.tar.gz |
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
-rw-r--r-- | gst/vaapi/gstvaapidecodebin.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gst/vaapi/gstvaapidecodebin.c b/gst/vaapi/gstvaapidecodebin.c index e602d62c..4baec20b 100644 --- a/gst/vaapi/gstvaapidecodebin.c +++ b/gst/vaapi/gstvaapidecodebin.c @@ -314,6 +314,12 @@ gst_vaapi_decode_bin_handle_message (GstBin * bin, GstMessage * message) activate_vpp (vaapidecbin); 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, message); } |