mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 04:36:20 +00:00
vdpdecoder: do not leak pool
https://bugzilla.gnome.org/show_bug.cgi?id=736733
This commit is contained in:
parent
66967bb203
commit
dc421b308b
1 changed files with 3 additions and 1 deletions
|
@ -203,7 +203,9 @@ gst_vdp_decoder_decide_allocation (GstVideoDecoder * video_decoder,
|
||||||
if (pool == NULL
|
if (pool == NULL
|
||||||
|| !gst_buffer_pool_has_option (pool,
|
|| !gst_buffer_pool_has_option (pool,
|
||||||
GST_BUFFER_POOL_OPTION_VDP_VIDEO_META)) {
|
GST_BUFFER_POOL_OPTION_VDP_VIDEO_META)) {
|
||||||
/* no pool, we can make our own */
|
if (pool)
|
||||||
|
gst_object_unref (pool);
|
||||||
|
/* no pool or pool doesn't support GstVdpVideoMeta, we can make our own */
|
||||||
GST_DEBUG_OBJECT (video_decoder,
|
GST_DEBUG_OBJECT (video_decoder,
|
||||||
"no pool or doesn't support GstVdpVideoMeta, making new pool");
|
"no pool or doesn't support GstVdpVideoMeta, making new pool");
|
||||||
pool = gst_vdp_video_buffer_pool_new (vdp_decoder->device);
|
pool = gst_vdp_video_buffer_pool_new (vdp_decoder->device);
|
||||||
|
|
Loading…
Reference in a new issue