summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2017-01-05 15:00:21 +0200
committerSebastian Dröge <sebastian@centricular.com>2017-01-05 15:05:42 +0200
commit8b46e1b95a0d31669180d3070a104bceba694d28 (patch)
tree3fc3f24a345e4d50960ba6a91b85167f7653cbcd
parente92837b6e40b5ed706239a2a1814ff1c1f0d2ff5 (diff)
downloadgstreamer-plugins-bad-8b46e1b95a0d31669180d3070a104bceba694d28.tar.gz
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
-rw-r--r--sys/androidmedia/gstamc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/androidmedia/gstamc.c b/sys/androidmedia/gstamc.c
index 7c0f34795..10ce31038 100644
--- a/sys/androidmedia/gstamc.c
+++ b/sys/androidmedia/gstamc.c
@@ -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]);