err = gst_omx_video_dec_reconfigure_output_port (self);
if (err != OMX_ErrorNone)
goto reconfigure_error;
+#ifdef TIZEN_FEATURE_OMX
+ GstMessage *msg = NULL;
+
+ msg = gst_message_new_element (GST_OBJECT_CAST (self), gst_structure_new("prepare-decode-buffers",
+ "num_buffers", G_TYPE_INT, self->dec_out_port->port_def.nBufferCountActual,
+ "extra_num_buffers", G_TYPE_INT, EXTRA_DECODER_OUTPUT_BUF, NULL));
+
+ gst_element_post_message (GST_ELEMENT_CAST (self), msg);
+#endif
} else {
/* Just update caps */
GST_VIDEO_DECODER_STREAM_LOCK (self);
#endif
}
-#ifdef TIZEN_FEATURE_OMX
- GstMessage *msg = NULL;
-
- msg = gst_message_new_element (GST_OBJECT_CAST (self), gst_structure_new("prepare-decode-buffers",
- "num_buffers", G_TYPE_INT, self->dec_out_port->port_def.nBufferCountActual,
- "extra_num_buffers", G_TYPE_INT, EXTRA_DECODER_OUTPUT_BUF, NULL));
-
- gst_element_post_message (GST_ELEMENT_CAST (self), msg);
-#endif
if (gst_omx_component_get_state (self->dec,
GST_CLOCK_TIME_NONE) != OMX_StateIdle)