omxvideodec: Don't abort if the color format is not supported but give a useful error...
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Wed, 3 Aug 2011 11:10:33 +0000 (13:10 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Wed, 3 Aug 2011 11:10:33 +0000 (13:10 +0200)
omx/gstomxvideodec.c

index 644129e..e0d3745 100644 (file)
@@ -608,7 +608,9 @@ gst_omx_video_dec_loop (GstOMXVideoDec * self)
         state->format = GST_VIDEO_FORMAT_NV12;
         break;
       default:
-        g_assert_not_reached ();
+        GST_ERROR_OBJECT (self, "Unsupported color format: %d",
+            port_def.format.video.eColorFormat);
+        goto caps_failed;
         break;
     }