mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-06 01:19:38 +00:00
omxvideodec: Set the state back to StateLoaded even if an error happened
This commit is contained in:
parent
cb001aa85f
commit
2ea5bdf553
1 changed files with 1 additions and 2 deletions
|
@ -276,7 +276,6 @@ 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_port_deallocate_buffers (self->in_port);
|
||||
gst_omx_port_deallocate_buffers (self->out_port);
|
||||
|
|
Loading…
Reference in a new issue