[vlc-commits] commit: XCB/screen: fix misleading comments ( Rémi Denis-Courmont )

git at videolan.org git at videolan.org
Mon Jul 26 19:49:14 CEST 2010


vlc/vlc-1.1 | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Jul 22 22:43:59 2010 +0300| [94982a61357eaa059f9c7ccb682473c882c3fc1f] | committer: Rémi Duraffort 

XCB/screen: fix misleading comments
(cherry picked from commit b6e0ca0b8d5a8d0bffdab06701cb7cb3a1ac60c2)

Signed-off-by: Rémi Duraffort <ivoire at videolan.org>

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

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

diff --git a/modules/access/screen/xcb.c b/modules/access/screen/xcb.c
index 0a464e8..103b6dd 100644
--- a/modules/access/screen/xcb.c
+++ b/modules/access/screen/xcb.c
@@ -383,6 +383,7 @@ static void Demux (void *data)
         }
     }
 
+    /* Capture screen */
     xcb_get_image_reply_t *img;
     img = xcb_get_image_reply (conn,
         xcb_get_image (conn, XCB_IMAGE_FORMAT_Z_PIXMAP, root,
@@ -390,12 +391,12 @@ static void Demux (void *data)
     if (img == NULL)
         return;
 
-    /* Send block - zero copy */
     block_t *block = block_heap_Alloc (img, xcb_get_image_data (img),
                                        xcb_get_image_data_length (img));
     if (block == NULL)
         return;
 
+    /* Update elementary stream format (if needed) */
     vlc_mutex_lock (&p_sys->lock);
     if (w != p_sys->cur_w || h != p_sys->cur_h)
     {
@@ -409,7 +410,7 @@ static void Demux (void *data)
         }
     }
 
-    /* Capture screen */
+    /* Send block - zero copy */
     if (p_sys->es != NULL)
     {
         if (p_sys->pts == VLC_TS_INVALID)



More information about the vlc-commits mailing list