omxvideodec: Make sure the output port is disabled while we allocate buffers

This commit is contained in:
Sebastian Dröge 2013-03-07 17:29:43 +01:00
parent 20c9ae0823
commit bbd30a96bd

View file

@ -1448,18 +1448,10 @@ gst_omx_video_dec_loop (GstOMXVideoDec * self)
GST_VIDEO_DECODER_STREAM_UNLOCK (self);
if (acq_return == GST_OMX_ACQUIRE_BUFFER_RECONFIGURE) {
err = gst_omx_port_set_enabled (port, TRUE);
if (err != OMX_ErrorNone)
goto reconfigure_error;
err = gst_omx_video_dec_allocate_output_buffers (self);
if (err != OMX_ErrorNone)
goto reconfigure_error;
err = gst_omx_port_wait_enabled (port, 5 * GST_SECOND);
if (err != OMX_ErrorNone)
goto reconfigure_error;
err = gst_omx_port_mark_reconfigured (port);
if (err != OMX_ErrorNone)
goto reconfigure_error;