summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2018-07-26 16:22:50 +0200
committerTim-Philipp Müller <tim@centricular.com>2019-05-09 01:28:39 +0200
commita4ac4b5ac901da07ed885b9ae4ec9616797d5f59 (patch)
treed255b552001b5a5e2ab9859c4a26d60f45e107be
parentc1ecdb90e1647d0d1fec816a6df718b6923ab18f (diff)
downloadgst-omx-a4ac4b5ac901da07ed885b9ae4ec9616797d5f59.tar.gz
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
-rw-r--r--omx/gstomxvideodec.c2
1 files changed, 1 insertions, 1 deletions
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;
}