mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 08:46:40 +00:00
Fix LE caps on bpp=24/32. Our docs currently say that these are BE only. I disagree, but still, it's our spec so let'...
Original commit message from CVS: Fix LE caps on bpp=24/32. Our docs currently say that these are BE only. I disagree, but still, it's our spec so let's keep to it for now...
This commit is contained in:
parent
b43a45315a
commit
efa3c21fdd
1 changed files with 9 additions and 0 deletions
|
@ -448,6 +448,15 @@ gst_ximagesink_xcontext_get (GstXImageSink *ximagesink)
|
|||
GST_DEBUG ("ximagesink is not using XShm extension");
|
||||
}
|
||||
#endif /* HAVE_XSHM */
|
||||
|
||||
/* our caps system handles 24/32bpp RGB as big-endian. */
|
||||
if ((xcontext->bpp == 24 || xcontext->bpp == 32) &&
|
||||
xcontext->endianness == G_LITTLE_ENDIAN) {
|
||||
xcontext->endianness = G_BIG_ENDIAN;
|
||||
xcontext->visual->red_mask = GULONG_TO_BE (xcontext->visual->red_mask);
|
||||
xcontext->visual->green_mask = GULONG_TO_BE (xcontext->visual->green_mask);
|
||||
xcontext->visual->blue_mask = GULONG_TO_BE (xcontext->visual->blue_mask);
|
||||
}
|
||||
|
||||
xcontext->caps = GST_CAPS_NEW ("ximagesink_ximage_caps", "video/x-raw-rgb",
|
||||
"bpp", GST_PROPS_INT (xcontext->bpp),
|
||||
|
|
Loading…
Reference in a new issue