Don't get the output format from the codec before it is ready
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Thu, 23 Aug 2012 15:31:40 +0000 (17:31 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Mon, 15 Oct 2012 14:28:38 +0000 (16:28 +0200)
Apparently things are crashing otherwise.

sys/androidmedia/gstamcvideodec.c

index 616026d875092fb40dd8a5fdbec9d487469b67e0..86c2675d83909fe6d7a407d0f36e9cd7e6c1699f 100644 (file)
@@ -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) {