omxvideodec: Don't forget to populate output port

This commit is contained in:
Sebastian Dröge 2013-03-08 15:56:40 +01:00
parent c014b1c9a3
commit aa6be53375

View file

@ -1452,6 +1452,10 @@ gst_omx_video_dec_loop (GstOMXVideoDec * self)
if (err != OMX_ErrorNone)
goto reconfigure_error;
err = gst_omx_port_populate (port);
if (err != OMX_ErrorNone)
goto reconfigure_error;
err = gst_omx_port_mark_reconfigured (port);
if (err != OMX_ErrorNone)
goto reconfigure_error;
@ -2097,6 +2101,10 @@ gst_omx_video_dec_set_format (GstVideoDecoder * decoder,
return FALSE;
}
if (!needs_disable)
if (gst_omx_port_populate (self->dec_out_port) != OMX_ErrorNone)
return FALSE;
/* Start the srcpad loop again */
GST_DEBUG_OBJECT (self, "Starting task again");
@ -2131,6 +2139,7 @@ gst_omx_video_dec_reset (GstVideoDecoder * decoder, gboolean hard)
gst_omx_port_set_flushing (self->dec_in_port, 5 * GST_SECOND, FALSE);
gst_omx_port_set_flushing (self->dec_out_port, 5 * GST_SECOND, FALSE);
gst_omx_port_populate (self->dec_out_port);
/* Start the srcpad loop again */
self->last_upstream_ts = 0;