Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
868b0869
Commit
868b0869
authored
Apr 16, 2012
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xcb screen: fix block allocation size
parent
329351de
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
modules/access/screen/xcb.c
modules/access/screen/xcb.c
+5
-4
No files found.
modules/access/screen/xcb.c
View file @
868b0869
...
@@ -299,9 +299,9 @@ static int Control (demux_t *demux, int query, va_list args)
...
@@ -299,9 +299,9 @@ static int Control (demux_t *demux, int query, va_list args)
/**
/**
* Processing callback
* Processing callback
*/
*/
static
void
Demux
(
void
*
data
)
static
void
Demux
(
void
*
opaque
)
{
{
demux_t
*
demux
=
data
;
demux_t
*
demux
=
opaque
;
demux_sys_t
*
sys
=
demux
->
p_sys
;
demux_sys_t
*
sys
=
demux
->
p_sys
;
xcb_connection_t
*
conn
=
sys
->
conn
;
xcb_connection_t
*
conn
=
sys
->
conn
;
...
@@ -411,11 +411,12 @@ discard:
...
@@ -411,11 +411,12 @@ discard:
if
(
img
==
NULL
)
if
(
img
==
NULL
)
return
;
return
;
uint8_t
*
data
=
xcb_get_image_data
(
img
);
size_t
datalen
=
xcb_get_image_data_length
(
img
);
size_t
datalen
=
xcb_get_image_data_length
(
img
);
block_t
*
block
=
block_heap_Alloc
(
img
,
sizeof
(
*
img
)
+
datalen
);
block_t
*
block
=
block_heap_Alloc
(
img
,
data
+
datalen
-
(
uint8_t
*
)
img
);
if
(
block
==
NULL
)
if
(
block
==
NULL
)
return
;
return
;
block
->
p_buffer
=
xcb_get_image_data
(
img
)
;
block
->
p_buffer
=
data
;
block
->
i_buffer
=
datalen
;
block
->
i_buffer
=
datalen
;
/* Send block - zero copy */
/* Send block - zero copy */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment