From a4ac4b5ac901da07ed885b9ae4ec9616797d5f59 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Thu, 26 Jul 2018 16:22:50 +0200 Subject: omxvideodec: fix pool caps reference stealing gst_buffer_pool_config_get_params() doesn't ref the returning caps; so gst_caps_replace() was unreffing the reference owned by the pool. https://bugzilla.gnome.org/show_bug.cgi?id=796918 --- omx/gstomxvideodec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/omx/gstomxvideodec.c b/omx/gstomxvideodec.c index 812eb29..576c211 100644 --- a/omx/gstomxvideodec.c +++ b/omx/gstomxvideodec.c @@ -731,7 +731,7 @@ gst_omx_video_dec_allocate_output_buffers (GstOMXVideoDec * self) max = min; } else if (max < min) { /* Can't use pool because can't have enough buffers */ - gst_caps_replace (&caps, NULL); + caps = NULL; } else { min = max; } -- cgit v1.2.1