projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7350dcc
)
omx: Deallocate port buffers before freeing the component
author
Sebastian Dröge
<sebastian.droege@collabora.co.uk>
Mon, 25 Jul 2011 08:46:49 +0000
(10:46 +0200)
committer
Sebastian Dröge
<sebastian.droege@collabora.co.uk>
Mon, 25 Jul 2011 08:46:49 +0000
(10:46 +0200)
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.
omx/gstomx.c
patch
|
blob
|
history
diff --git
a/omx/gstomx.c
b/omx/gstomx.c
index
e367e54
..
43dfe90
100644
(file)
--- a/
omx/gstomx.c
+++ b/
omx/gstomx.c
@@
-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
);
+ g
st_omx_port_deallocate_buffers (port
);
g_mutex_free (port->port_lock);
g_cond_free (port->port_cond);