Don't get the output format from the codec before it is ready

Apparently things are crashing otherwise.
This commit is contained in:
Sebastian Dröge 2012-08-23 17:31:40 +02:00
parent c4258069bb
commit bafd4a0b19

View file

@ -631,13 +631,13 @@ gst_amc_video_dec_loop (GstAmcVideoDec * self)
GST_VIDEO_DECODER_STREAM_LOCK (self);
retry:
if (self->input_state_changed) {
/*if (self->input_state_changed) {
idx = INFO_OUTPUT_FORMAT_CHANGED;
} else {
} else { */
GST_VIDEO_DECODER_STREAM_UNLOCK (self);
idx = gst_amc_codec_dequeue_output_buffer (self->codec, &buffer_info, -1);
GST_VIDEO_DECODER_STREAM_LOCK (self);
}
/*} */
if (idx < 0) {
switch (idx) {