amc: Do not skip decoders that have no profile levels
authorXavier Claessens <xavier.claessens@collabora.com>
Mon, 26 Aug 2019 18:53:39 +0000 (14:53 -0400)
committerMatthew Waters <matthew@centricular.com>
Tue, 27 Aug 2019 02:23:41 +0000 (02:23 +0000)
sys/androidmedia/gstamc.c

index b2818e2..5e96fb2 100644 (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;
       }