mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
omx: Deallocate port buffers before freeing the component
They should be deallocated by the caller before reaching the Loaded state but to be on the safe side we will make sure they're really deallocated here.
This commit is contained in:
parent
7350dcc8cd
commit
9e1cfa300b
1 changed files with 1 additions and 1 deletions
|
@ -435,7 +435,7 @@ gst_omx_component_free (GstOMXComponent * comp)
|
|||
for (i = 0; i < n; i++) {
|
||||
GstOMXPort *port = g_ptr_array_index (comp->ports, i);
|
||||
|
||||
g_assert (!port->buffers || port->buffers->len == 0);
|
||||
gst_omx_port_deallocate_buffers (port);
|
||||
|
||||
g_mutex_free (port->port_lock);
|
||||
g_cond_free (port->port_cond);
|
||||
|
|
Loading…
Reference in a new issue