[gst-cvs] gst-openmax: util: cleanup ports when going to loaded
Felipe Contreras
felipec at kemper.freedesktop.org
Sat Sep 19 09:21:16 PDT 2009
Module: gst-openmax
Branch: master
Commit: 51f490f36df69a28bd5b15ec3be73287a47bded8
URL: http://cgit.freedesktop.org/gstreamer/gst-openmax/commit/?id=51f490f36df69a28bd5b15ec3be73287a47bded8
Author: Felipe Contreras <felipe.contreras at nokia.com>
Date: Tue May 19 15:22:27 2009 +0300
util: cleanup ports when going to loaded
The ports will be setup again next time we go to Idle.
This fixes a regression when re-using omx wrappers.
Signed-off-by: Felipe Contreras <felipe.contreras at nokia.com>
---
omx/gstomx_util.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/omx/gstomx_util.c b/omx/gstomx_util.c
index 74b97b3..de05385 100644
--- a/omx/gstomx_util.c
+++ b/omx/gstomx_util.c
@@ -324,9 +324,6 @@ g_omx_core_deinit (GOmxCore *core)
if (!core->imp)
return;
- core_for_each_port (core, g_omx_port_free);
- g_ptr_array_clear (core->ports);
-
if (core->omx_state == OMX_StateLoaded ||
core->omx_state == OMX_StateInvalid)
{
@@ -392,6 +389,9 @@ g_omx_core_unload (GOmxCore *core)
if (core->omx_state != OMX_StateInvalid)
wait_for_state (core, OMX_StateLoaded);
}
+
+ core_for_each_port (core, g_omx_port_free);
+ g_ptr_array_clear (core->ports);
}
GOmxPort *
More information about the Gstreamer-commits
mailing list