mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-26 17:18:15 +00:00
sys/fbdev/gstfbdevsink.c: Fix the Depth calculation.
Original commit message from CVS: Patch by: Luotao Fu <l dot fu at pengutronix dot de> * sys/fbdev/gstfbdevsink.c: (gst_fbdevsink_getcaps): Fix the Depth calculation. Fixes #564114.
This commit is contained in:
parent
21ce049f2a
commit
382bbcbd2b
2 changed files with 12 additions and 2 deletions
|
@ -1,3 +1,11 @@
|
|||
2008-12-23 Wim Taymans <wim.taymans@collabora.co.uk>
|
||||
|
||||
Patch by: Luotao Fu <l dot fu at pengutronix dot de>
|
||||
|
||||
* sys/fbdev/gstfbdevsink.c: (gst_fbdevsink_getcaps):
|
||||
Fix the Depth calculation.
|
||||
Fixes #564114.
|
||||
|
||||
2008-12-23 Wim Taymans <wim.taymans@collabora.co.uk>
|
||||
|
||||
Patch by: Arnout Vandecappelle <arnout at mind dot be>
|
||||
|
|
|
@ -188,8 +188,10 @@ gst_fbdevsink_getcaps (GstBaseSink * bsink)
|
|||
caps = gst_caps_from_string (GST_VIDEO_CAPS_RGB_15);
|
||||
gst_caps_set_simple (caps,
|
||||
"bpp", G_TYPE_INT, fbdevsink->varinfo.bits_per_pixel,
|
||||
"depth", G_TYPE_INT, fbdevsink->varinfo.bits_per_pixel
|
||||
- fbdevsink->varinfo.transp.length,
|
||||
"depth", G_TYPE_INT, fbdevsink->varinfo.red.length +
|
||||
fbdevsink->varinfo.green.length +
|
||||
fbdevsink->varinfo.blue.length +
|
||||
fbdevsink->varinfo.transp.length,
|
||||
"endianness", G_TYPE_INT, endianness,
|
||||
"red_mask", G_TYPE_INT, rmask,
|
||||
"green_mask", G_TYPE_INT, gmask, "blue_mask", G_TYPE_INT, bmask, NULL);
|
||||
|
|
Loading…
Reference in a new issue