mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-18 12:15:19 +00:00
omxvideodec: Don't leak buffer pool config in error cases
CID 1216158
This commit is contained in:
parent
8ebc7d2b5a
commit
bf7e6109d9
1 changed files with 2 additions and 0 deletions
|
@ -567,11 +567,13 @@ gst_omx_video_dec_allocate_output_buffers (GstOMXVideoDec * self)
|
||||||
config = gst_buffer_pool_get_config (pool);
|
config = gst_buffer_pool_get_config (pool);
|
||||||
if (!gst_buffer_pool_config_get_params (config, &caps, NULL, &min, &max)) {
|
if (!gst_buffer_pool_config_get_params (config, &caps, NULL, &min, &max)) {
|
||||||
GST_ERROR_OBJECT (self, "Can't get buffer pool params");
|
GST_ERROR_OBJECT (self, "Can't get buffer pool params");
|
||||||
|
gst_structure_free (config);
|
||||||
err = OMX_ErrorUndefined;
|
err = OMX_ErrorUndefined;
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
if (!gst_buffer_pool_config_get_allocator (config, &allocator, NULL)) {
|
if (!gst_buffer_pool_config_get_allocator (config, &allocator, NULL)) {
|
||||||
GST_ERROR_OBJECT (self, "Can't get buffer pool allocator");
|
GST_ERROR_OBJECT (self, "Can't get buffer pool allocator");
|
||||||
|
gst_structure_free (config);
|
||||||
err = OMX_ErrorUndefined;
|
err = OMX_ErrorUndefined;
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue