Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
917dc2d4
Commit
917dc2d4
authored
May 04, 2013
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
XCB: avoid strndup() for debug messages
parent
b195d6ef
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
13 deletions
+4
-13
modules/video_output/xcb/events.c
modules/video_output/xcb/events.c
+2
-6
modules/video_output/xcb/xvideo.c
modules/video_output/xcb/xvideo.c
+2
-7
No files found.
modules/video_output/xcb/events.c
View file @
917dc2d4
...
...
@@ -72,12 +72,8 @@ static xcb_connection_t *Connect (vlc_object_t *obj, const char *display)
const
xcb_setup_t
*
setup
=
xcb_get_setup
(
conn
);
msg_Dbg
(
obj
,
"connected to X%"
PRIu16
".%"
PRIu16
" server"
,
setup
->
protocol_major_version
,
setup
->
protocol_minor_version
);
char
*
vendor
=
strndup
(
xcb_setup_vendor
(
setup
),
setup
->
vendor_len
);
if
(
vendor
)
{
msg_Dbg
(
obj
,
" vendor : %s"
,
vendor
);
free
(
vendor
);
}
msg_Dbg
(
obj
,
" vendor : %.*s"
,
(
int
)
setup
->
vendor_len
,
xcb_setup_vendor
(
setup
));
msg_Dbg
(
obj
,
" version: %"
PRIu32
,
setup
->
release_number
);
return
conn
;
}
...
...
modules/video_output/xcb/xvideo.c
View file @
917dc2d4
...
...
@@ -428,7 +428,6 @@ static int Open (vlc_object_t *obj)
xcb_xv_adaptor_info_next
(
&
it
))
{
const
xcb_xv_adaptor_info_t
*
a
=
it
.
data
;
char
*
name
;
adaptor_current
++
;
if
(
adaptor_selected
!=
-
1
&&
adaptor_selected
!=
adaptor_current
)
...
...
@@ -466,12 +465,8 @@ static int Open (vlc_object_t *obj)
grabbed_port:
/* Found port - initialize selected format */
name
=
strndup
(
xcb_xv_adaptor_info_name
(
a
),
a
->
name_size
);
if
(
name
!=
NULL
)
{
msg_Dbg
(
vd
,
"using adaptor %s"
,
name
);
free
(
name
);
}
msg_Dbg
(
vd
,
"using adaptor %.*s"
,
(
int
)
a
->
name_size
,
xcb_xv_adaptor_info_name
(
a
));
msg_Dbg
(
vd
,
"using port %"
PRIu32
,
p_sys
->
port
);
msg_Dbg
(
vd
,
"using image format 0x%"
PRIx32
,
p_sys
->
id
);
...
...
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