gst_buffer_replace (&self->codec_data, state->codec_data);
self->input_state = gst_video_codec_state_ref (state);
- if (!gst_omx_video_dec_negotiate (self)) {
- GST_LOG_OBJECT (self, "Negotiation failed, will get output format later");
- }
-
GST_DEBUG_OBJECT (self, "Enabling component");
if (needs_disable) {
if (gst_omx_port_mark_reconfigured (self->dec_in_port) != OMX_ErrorNone)
return FALSE;
} else {
+ if (!gst_omx_video_dec_negotiate (self))
+ GST_LOG_OBJECT (self, "Negotiation failed, will get output format later");
+
if (gst_omx_component_set_state (self->dec, OMX_StateIdle) != OMX_ErrorNone)
return FALSE;