androidmedia: Do not warn we do not support COLOR_FormatSurface
authorMatthieu Bouron <matthieu.bouron@gmail.com>
Tue, 31 Mar 2015 15:48:59 +0000 (17:48 +0200)
committerMatthew Waters <matthew@centricular.com>
Tue, 20 Oct 2015 17:27:43 +0000 (04:27 +1100)
sys/androidmedia/gstamc.c

index 078e28a..0101f74 100644 (file)
@@ -2004,8 +2004,10 @@ accepted_color_formats (GstAmcCodecType * type, gboolean is_encoder)
   for (i = 0; i < type->n_color_formats; i++) {
     gboolean found = FALSE;
     /* We ignore this one */
-    if (type->color_formats[i] == COLOR_FormatAndroidOpaque)
+    if (type->color_formats[i] == COLOR_FormatAndroidOpaque) {
       all--;
+      continue;
+    }
 
     for (j = 0; j < G_N_ELEMENTS (color_format_mapping_table); j++) {
       if (color_format_mapping_table[j].color_format == type->color_formats[i]) {