Commit a4ac4b5a authored by Guillaume Desmottes's avatar Guillaume Desmottes 🐐 Committed by Tim-Philipp Müller

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.
parent c1ecdb90
......@@ -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;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment