mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-13 23:22:54 +00:00
omxvideodec: Make sure the output port is disabled while we allocate buffers
This commit is contained in:
parent
20c9ae0823
commit
bbd30a96bd
1 changed files with 0 additions and 8 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue