]> git.sesse.net Git - vlc/commitdiff
XCB/screen: fix misleading comments
authorRémi Denis-Courmont <remi@remlab.net>
Thu, 22 Jul 2010 19:43:59 +0000 (22:43 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Thu, 22 Jul 2010 19:43:59 +0000 (22:43 +0300)
modules/access/screen/xcb.c

index c1293524925b7a20b55a84b7aeffc7bdba3b1337..9cc919ca8a4728a814ed0ed4937ed7375c2a86e0 100644 (file)
@@ -382,6 +382,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,
@@ -389,12 +390,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)
     {
@@ -408,7 +409,7 @@ static void Demux (void *data)
         }
     }
 
-    /* Capture screen */
+    /* Send block - zero copy */
     if (p_sys->es != NULL)
     {
         if (p_sys->pts == VLC_TS_INVALID)