androidmedia: Silently skip COLOR_FormatAndroidOpaque when converting to caps
authorSebastian Dröge <sebastian@centricular.com>
Thu, 5 Jan 2017 13:00:21 +0000 (15:00 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Thu, 5 Jan 2017 13:05:42 +0000 (15:05 +0200)
This is special and handled in the decoder when doing rendering to a
surface. Printing a warning for this is just unnecessary noise

sys/androidmedia/gstamc.c

index 7c0f347..10ce310 100644 (file)
@@ -3561,6 +3561,11 @@ gst_amc_codec_info_to_caps (const GstAmcCodecInfo * codec_info,
         for (j = 0; j < type->n_color_formats; j++) {
           GstVideoFormat format;
 
+          /* Skip here without a warning, this is special and handled
+           * in the decoder when doing rendering to a surface */
+          if (type->color_formats[j] == COLOR_FormatAndroidOpaque)
+            continue;
+
           format =
               gst_amc_color_format_to_video_format (codec_info,
               type->mime, type->color_formats[j]);