Commit 94982a61 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont Committed by Rémi Duraffort

XCB/screen: fix misleading comments

(cherry picked from commit b6e0ca0b8d5a8d0bffdab06701cb7cb3a1ac60c2)
Signed-off-by: default avatarRémi Duraffort <ivoire@videolan.org>
parent 50278f4d
...@@ -383,6 +383,7 @@ static void Demux (void *data) ...@@ -383,6 +383,7 @@ static void Demux (void *data)
} }
} }
/* Capture screen */
xcb_get_image_reply_t *img; xcb_get_image_reply_t *img;
img = xcb_get_image_reply (conn, img = xcb_get_image_reply (conn,
xcb_get_image (conn, XCB_IMAGE_FORMAT_Z_PIXMAP, root, xcb_get_image (conn, XCB_IMAGE_FORMAT_Z_PIXMAP, root,
...@@ -390,12 +391,12 @@ static void Demux (void *data) ...@@ -390,12 +391,12 @@ static void Demux (void *data)
if (img == NULL) if (img == NULL)
return; return;
/* Send block - zero copy */
block_t *block = block_heap_Alloc (img, xcb_get_image_data (img), block_t *block = block_heap_Alloc (img, xcb_get_image_data (img),
xcb_get_image_data_length (img)); xcb_get_image_data_length (img));
if (block == NULL) if (block == NULL)
return; return;
/* Update elementary stream format (if needed) */
vlc_mutex_lock (&p_sys->lock); vlc_mutex_lock (&p_sys->lock);
if (w != p_sys->cur_w || h != p_sys->cur_h) if (w != p_sys->cur_w || h != p_sys->cur_h)
{ {
...@@ -409,7 +410,7 @@ static void Demux (void *data) ...@@ -409,7 +410,7 @@ static void Demux (void *data)
} }
} }
/* Capture screen */ /* Send block - zero copy */
if (p_sys->es != NULL) if (p_sys->es != NULL)
{ {
if (p_sys->pts == VLC_TS_INVALID) if (p_sys->pts == VLC_TS_INVALID)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment