projects
/
platform
/
upstream
/
gst-omx.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9678efd
)
omx: Fix crash when setting last error after the ports were freed
author
Sebastian Dröge
<sebastian.droege@collabora.co.uk>
Wed, 10 Aug 2011 07:08:00 +0000
(09:08 +0200)
committer
Sebastian Dröge
<sebastian.droege@collabora.co.uk>
Wed, 10 Aug 2011 07:08:00 +0000
(09:08 +0200)
omx/gstomx.c
patch
|
blob
|
history
diff --git
a/omx/gstomx.c
b/omx/gstomx.c
index f174e33126a0362b3ed5f7e7e8552ff8ccdc9d9a..8513a43156e190013fff41d30027bbd09be7a59f 100644
(file)
--- a/
omx/gstomx.c
+++ b/
omx/gstomx.c
@@
-722,7
+722,7
@@
gst_omx_component_set_last_error (GstOMXComponent * comp, OMX_ERRORTYPE err)
* very beginning and never change again until
* component destruction.
*/
- n =
comp->ports->len
;
+ n =
(comp->ports ? comp->ports->len : 0)
;
for (i = 0; i < n; i++) {
GstOMXPort *tmp = g_ptr_array_index (comp->ports, i);