From: Sebastian Dröge Date: Wed, 10 Aug 2011 06:52:25 +0000 (+0200) Subject: omxvideodec: Set the state back to StateLoaded even if an error happened X-Git-Tag: 1.0.0~374 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2ea5bdf553329f0186fd96a058fbdcca49ac23d7;p=platform%2Fupstream%2Fgst-omx.git omxvideodec: Set the state back to StateLoaded even if an error happened --- diff --git a/omx/gstomxvideodec.c b/omx/gstomxvideodec.c index e0d3745..f0b3441 100644 --- a/omx/gstomxvideodec.c +++ b/omx/gstomxvideodec.c @@ -276,8 +276,7 @@ gst_omx_video_dec_close (GstOMXVideoDec * self) state = gst_omx_component_get_state (self->component, 0); if (state > OMX_StateLoaded || state == OMX_StateInvalid) { - if (state > OMX_StateLoaded) - gst_omx_component_set_state (self->component, OMX_StateLoaded); + gst_omx_component_set_state (self->component, OMX_StateLoaded); gst_omx_port_deallocate_buffers (self->in_port); gst_omx_port_deallocate_buffers (self->out_port); if (state > OMX_StateLoaded)