From bafd4a0b1982142ed246d8e0d2d887300eaddcd6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Thu, 23 Aug 2012 17:31:40 +0200 Subject: [PATCH] Don't get the output format from the codec before it is ready Apparently things are crashing otherwise. --- sys/androidmedia/gstamcvideodec.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/sys/androidmedia/gstamcvideodec.c b/sys/androidmedia/gstamcvideodec.c index 616026d875..86c2675d83 100644 --- a/sys/androidmedia/gstamcvideodec.c +++ b/sys/androidmedia/gstamcvideodec.c @@ -631,13 +631,13 @@ gst_amc_video_dec_loop (GstAmcVideoDec * self) GST_VIDEO_DECODER_STREAM_LOCK (self); retry: - if (self->input_state_changed) { - idx = INFO_OUTPUT_FORMAT_CHANGED; - } 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 (self->input_state_changed) { + idx = INFO_OUTPUT_FORMAT_CHANGED; + } 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) {