From: George Kiagiadakis Date: Tue, 10 Jan 2012 19:02:48 +0000 (+0200) Subject: video: Use host endianness when generating caps for 16-bit rgb formats X-Git-Tag: 1.19.3~511^2~6555^2~150 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1251fb3fc0bd60eb4a38f47403e06c293c51fb16;p=platform%2Fupstream%2Fgstreamer.git 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 --- 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);