amc: Do not skip decoders that have no profile levels

This commit is contained in:
Xavier Claessens 2019-08-26 14:53:39 -04:00 committed by Matthew Waters
parent 40212aaf00
commit 121711e4ac

View file

@ -313,8 +313,8 @@ scan_codecs (GstPlugin * plugin)
gst_codec_type->profile_levels =
gst_amc_codec_capabilities_handle_get_profile_levels (capabilities,
&gst_codec_type->n_profile_levels, &error);
if (!gst_codec_type->profile_levels) {
GST_ERROR ("Failed to get profile/levels");
if (error) {
GST_ERROR ("Failed to get profile/levels: %s", error->message);
valid_codec = FALSE;
goto next_supported_type;
}