mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-22 22:16:22 +00:00
vaapidecode: plug a memory leak.
It can happen that there is a pool provided that does not advertise the vappivideometa. We should unref that pool before using our own. Discovered with vaapidecode ! {glimagesink,cluttersink} https://bugzilla.gnome.org/show_bug.cgi?id=724957 [fixed compilation by adding the missing semi-colon] Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
This commit is contained in:
parent
abfb5dd06c
commit
3fbef25e13
1 changed files with 2 additions and 0 deletions
|
@ -548,6 +548,8 @@ gst_vaapidecode_decide_allocation(GstVideoDecoder *vdec, GstQuery *query)
|
|||
GST_BUFFER_POOL_OPTION_VAAPI_VIDEO_META)) {
|
||||
GST_INFO("no pool or doesn't support GstVaapiVideoMeta, "
|
||||
"making new pool");
|
||||
if (pool)
|
||||
gst_object_unref(pool);
|
||||
pool = gst_vaapi_video_buffer_pool_new(
|
||||
GST_VAAPI_PLUGIN_BASE_DISPLAY(decode));
|
||||
if (!pool)
|
||||
|
|
Loading…
Reference in a new issue