diff options
author | Felipe Contreras <felipe.contreras@nokia.com> | 2009-05-19 15:22:27 +0300 |
---|---|---|
committer | Felipe Contreras <felipe.contreras@gmail.com> | 2009-09-19 18:03:22 +0300 |
commit | 51f490f36df69a28bd5b15ec3be73287a47bded8 (patch) | |
tree | 3acdae560aa9d1ee0438462ad5a9522c05c3614f | |
parent | 9f8078574ff6a807db6654b0be6482100f8a797c (diff) |
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@nokia.com>
-rw-r--r-- | 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 * |