omxvideodec: Don't abort if the color format is not supported but give a useful error message

This commit is contained in:
Sebastian Dröge 2011-08-03 13:10:33 +02:00
parent 714ba59b11
commit febc2d99cb

View 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;
}