videobalance: fix unhandled format in passthrough
authorWim Taymans <wtaymans@redhat.com>
Thu, 20 Nov 2014 08:01:38 +0000 (09:01 +0100)
committerWim Taymans <wtaymans@redhat.com>
Thu, 20 Nov 2014 08:02:36 +0000 (09:02 +0100)
In passthrough we can handle all formats.

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=740387

gst/videofilter/gstvideobalance.c

index 950c484..49cad51 100644 (file)
@@ -454,7 +454,8 @@ gst_video_balance_set_info (GstVideoFilter * vfilter, GstCaps * incaps,
       videobalance->process = gst_video_balance_packed_rgb;
       break;
     default:
-      goto unknown_format;
+      if (!gst_video_balance_is_passthrough (videobalance))
+        goto unknown_format;
       break;
   }