diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2018-07-26 16:22:50 +0200 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2018-08-30 10:59:30 +0200 |
commit | 9ed1c2e75ede4e94091413a2f5f4394427870410 (patch) | |
tree | 3fc99066f6b86a96aaf83254b79a2124779ac7d4 /omx | |
parent | 0996019c079fadd3dd84ac57078e906df93c90c6 (diff) | |
download | gst-omx-9ed1c2e75ede4e94091413a2f5f4394427870410.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
Diffstat (limited to 'omx')
-rw-r--r-- | omx/gstomxvideodec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/omx/gstomxvideodec.c b/omx/gstomxvideodec.c index 5f86da5..513ce47 100644 --- a/omx/gstomxvideodec.c +++ b/omx/gstomxvideodec.c @@ -721,7 +721,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; } |