[Gstreamer-openmax] [PATCH] basefilter: release ready_lock when core_prepare fails
Felipe Contreras
felipe.contreras at gmail.com
Fri Mar 27 02:57:51 PDT 2009
2009/3/27 René Stadler <mail at renestadler.de>:
>
> Signed-off-by: René Stadler <mail at renestadler.de>
> ---
> omx/gstomx_base_filter.c | 3 +++
> 1 files changed, 3 insertions(+), 0 deletions(-)
>
> diff --git a/omx/gstomx_base_filter.c b/omx/gstomx_base_filter.c
> index 3679916..2da5eff 100644
> --- a/omx/gstomx_base_filter.c
> +++ b/omx/gstomx_base_filter.c
> @@ -540,7 +540,10 @@ pad_chain (GstPad *pad,
> setup_ports (self);
>
> if (!g_omx_core_prepare (self->gomx))
> + {
> + g_mutex_unlock (self->ready_lock);
> goto fail_omx_state;
> + }
>
> self->ready = TRUE;
> gst_pad_start_task (self->srcpad, output_loop, self->srcpad);
> --
> 1.5.6.3
Acked. Thanks :)
--
Felipe Contreras
More information about the Gstreamer-openmax
mailing list