androidmedia: Silently skip COLOR_FormatAndroidOpaque when converting to caps

This is special and handled in the decoder when doing rendering to a
surface. Printing a warning for this is just unnecessary noise
This commit is contained in:
Sebastian Dröge 2017-01-05 15:00:21 +02:00
parent e92837b6e4
commit 8b46e1b95a

View 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]);