goto cleanup;
}
- gst_object_replace ((GstObject **) & output->decoder_sink, NULL);
- gst_object_replace ((GstObject **) & output->decoder_src, NULL);
-
gst_element_set_locked_state (output->decoder, TRUE);
gst_element_set_state (output->decoder, GST_STATE_NULL);
gst_caps_unref (new_caps);
+ gst_object_replace ((GstObject **) & output->decoder_sink, NULL);
+ gst_object_replace ((GstObject **) & output->decoder_src, NULL);
+
/* If a decoder is required, create one */
if (needs_decoder) {
/* If we don't have a decoder yet, instantiate one */