[vlc-devel] commit: XCB: also set RGB masks in video_format_t ( Rémi Denis-Courmont )

git version control git at videolan.org
Sun Apr 26 16:40:14 CEST 2009


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Apr 26 17:23:08 2009 +0300| [4fbb72f54325da45564f34b790770381d204cf05] | committer: Rémi Denis-Courmont 

XCB: also set RGB masks in video_format_t

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4fbb72f54325da45564f34b790770381d204cf05
---

 modules/video_output/xcb/x11.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/modules/video_output/xcb/x11.c b/modules/video_output/xcb/x11.c
index d0e8af3..4dea7da 100644
--- a/modules/video_output/xcb/x11.c
+++ b/modules/video_output/xcb/x11.c
@@ -211,9 +211,9 @@ static int Open (vlc_object_t *obj)
         vout->fmt_out.i_chroma = vout->output.i_chroma = chroma;
         if (!gray)
         {
-            vout->output.i_rmask = vt->red_mask;
-            vout->output.i_gmask = vt->green_mask;
-            vout->output.i_bmask = vt->blue_mask;
+            vout->fmt_out.i_rmask = vout->output.i_rmask = vt->red_mask;
+            vout->fmt_out.i_gmask = vout->output.i_gmask = vt->green_mask;
+            vout->fmt_out.i_bmask = vout->output.i_bmask = vt->blue_mask;
         }
         p_sys->bpp = fmt->bits_per_pixel;
         p_sys->pad = fmt->scanline_pad;




More information about the vlc-devel mailing list