[vlc-devel] commit: Cosmetics ( Rémi Denis-Courmont )

git version control git at videolan.org
Mon Jun 8 22:27:24 CEST 2009


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Jun  8 20:37:19 2009 +0300| [b6563184873e5485e2df608058ee327a34fdfad4] | committer: Rémi Denis-Courmont 

Cosmetics

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

 modules/access/screen/xcb.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/modules/access/screen/xcb.c b/modules/access/screen/xcb.c
index e66f6a3..f64f8d0 100644
--- a/modules/access/screen/xcb.c
+++ b/modules/access/screen/xcb.c
@@ -157,7 +157,7 @@ static int Open (vlc_object_t *obj)
         unsigned long ul = strtoul (demux->psz_path, &end, 0);
         if (*end || ul > 0xffffffff)
         {
-            msg_Err (obj, "bad X11 window %s", demux->psz_path);
+            msg_Err (obj, "bad X11 drawable %s", demux->psz_path);
             goto error;
         }
         p_sys->window = ul;
@@ -186,14 +186,15 @@ static int Open (vlc_object_t *obj)
         p_sys->h = geo->height - p_sys->y;
 
     uint32_t chroma = 0;
-    uint8_t bpp = geo->depth;
+    uint8_t bpp;
     for (const xcb_format_t *fmt = xcb_setup_pixmap_formats (setup),
              *end = fmt + xcb_setup_pixmap_formats_length (setup);
          fmt < end; fmt++)
     {
         if (fmt->depth != geo->depth)
             continue;
-        switch (geo->depth)
+        bpp = fmt->depth;
+        switch (fmt->depth)
         {
             case 32:
                 if (fmt->bits_per_pixel == 32)




More information about the vlc-devel mailing list