From febc2d99cb9dffa7f78d1451b1149d20a36a0692 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Wed, 3 Aug 2011 13:10:33 +0200 Subject: [PATCH] omxvideodec: Don't abort if the color format is not supported but give a useful error message --- omx/gstomxvideodec.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/omx/gstomxvideodec.c b/omx/gstomxvideodec.c index 644129e981..e0d3745da5 100644 --- a/omx/gstomxvideodec.c +++ b/omx/gstomxvideodec.c @@ -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; }