videotestsrc: fix handling of Bayer format 'gbrg'
authorJoan Pau Beltran <joanpau.beltran@socib.cat>
Wed, 28 Oct 2015 17:36:41 +0000 (18:36 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Fri, 30 Oct 2015 20:48:11 +0000 (20:48 +0000)
Due to a typo, videotestsrc did not handle the Bayer
format 'gbrg' properly and reported it as invalid,
causing negotiation errors.

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

gst/videotestsrc/gstvideotestsrc.c

index f646b4c..136617a 100644 (file)
@@ -603,7 +603,7 @@ gst_video_test_src_parse_caps (const GstCaps * caps,
     } else if (g_str_equal (str, "grbg")) {
       *x_inv = 0;
       *y_inv = 1;
-    } else if (g_str_equal (str, "grbg")) {
+    } else if (g_str_equal (str, "gbrg")) {
       *x_inv = 1;
       *y_inv = 0;
     } else