From 1251fb3fc0bd60eb4a38f47403e06c293c51fb16 Mon Sep 17 00:00:00 2001 From: George Kiagiadakis Date: Tue, 10 Jan 2012 21:02:48 +0200 Subject: [PATCH] video: Use host endianness when generating caps for 16-bit rgb formats This is necessary in order to match what the caps strings in video.h contain for 16-bit rgb formats and also to match how gst_video_format_parse_caps expects them. https://bugzilla.gnome.org/show_bug.cgi?id=667681 --- gst-libs/gst/video/video.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst-libs/gst/video/video.c b/gst-libs/gst/video/video.c index f22ff4c..f68de1c 100644 --- a/gst-libs/gst/video/video.c +++ b/gst-libs/gst/video/video.c @@ -673,7 +673,7 @@ gst_video_format_new_caps_raw (GstVideoFormat format) if (bpp != 8) { gst_caps_set_simple (caps, - "endianness", G_TYPE_INT, G_BIG_ENDIAN, + "endianness", G_TYPE_INT, bpp == 16 ? G_BYTE_ORDER : G_BIG_ENDIAN, "red_mask", G_TYPE_INT, red_mask, "green_mask", G_TYPE_INT, green_mask, "blue_mask", G_TYPE_INT, blue_mask, NULL); -- 2.7.4