mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-28 20:05:38 +00:00
omxbufferpool: return buffers to the pool instead of freeing them
We have to return the buffers back to the pool in when stopping to not mess with the GstBufferPool accounting. The OMX buffers will be freed when those won't be in charge of the pool in the chained up call to 'stop'. Fixes segfaults on finalize and pool not being properly deactivated. https://bugzilla.gnome.org/show_bug.cgi?id=726337
This commit is contained in:
parent
651e67e32d
commit
100e9f998d
1 changed files with 2 additions and 2 deletions
|
@ -223,8 +223,8 @@ gst_omx_buffer_pool_stop (GstBufferPool * bpool)
|
|||
* GstBufferPool::free_buffer is not called while stopping the pool
|
||||
* (because the queue is empty) */
|
||||
for (i = 0; i < pool->buffers->len; i++)
|
||||
gst_omx_buffer_pool_free_buffer (bpool, g_ptr_array_index (pool->buffers,
|
||||
i));
|
||||
GST_BUFFER_POOL_CLASS (gst_omx_buffer_pool_parent_class)->release_buffer
|
||||
(bpool, g_ptr_array_index (pool->buffers, i));
|
||||
|
||||
/* Remove any buffers that are there */
|
||||
g_ptr_array_set_size (pool->buffers, 0);
|
||||
|
|
Loading…
Reference in a new issue