mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 15:51:11 +00:00
sys/ximage/ximageutil.c: Fix rgb masks when recording in < 24bpp.
Original commit message from CVS: 2006-08-04 Zaheer Abbas Merali <zaheerabbas at merali dot org> * sys/ximage/ximageutil.c: (ximageutil_xcontext_get): Fix rgb masks when recording in < 24bpp.
This commit is contained in:
parent
76e8dd7b26
commit
8d6b0e2963
2 changed files with 9 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2006-08-04 Zaheer Abbas Merali <zaheerabbas at merali dot org>
|
||||
|
||||
* sys/ximage/ximageutil.c: (ximageutil_xcontext_get):
|
||||
Fix rgb masks when recording in < 24bpp.
|
||||
|
||||
2006-08-04 Andy Wingo <wingo@pobox.com>
|
||||
|
||||
* ext/ladspa/gstsignalprocessor.c (gst_signal_processor_setcaps)
|
||||
|
|
|
@ -210,6 +210,10 @@ ximageutil_xcontext_get (GstElement * parent, const gchar * display_name)
|
|||
xcontext->g_mask_output >>= 8;
|
||||
xcontext->b_mask_output >>= 8;
|
||||
}
|
||||
} else {
|
||||
xcontext->r_mask_output = xcontext->visual->red_mask;
|
||||
xcontext->g_mask_output = xcontext->visual->green_mask;
|
||||
xcontext->b_mask_output = xcontext->visual->blue_mask;
|
||||
}
|
||||
|
||||
return xcontext;
|
||||
|
|
Loading…
Reference in a new issue