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
32e6e6e3
Commit
32e6e6e3
authored
Aug 30, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xcb_xv: grab an xvideo port
parent
c793eff2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
5 deletions
+22
-5
modules/video_output/xcb/xvideo.c
modules/video_output/xcb/xvideo.c
+22
-5
No files found.
modules/video_output/xcb/xvideo.c
View file @
32e6e6e3
...
...
@@ -328,8 +328,6 @@ static int Open (vlc_object_t *obj)
/* */
video_format_t
fmt
=
vd
->
fmt
;
// TODO !
#if 1
bool
found_adaptor
=
false
;
/* FIXME: check max image size */
...
...
@@ -379,8 +377,28 @@ static int Open (vlc_object_t *obj)
continue
;
found_format:
/* TODO: grab port */
p_sys
->
port
=
a
->
base_id
;
/* Grab a port */
/* XXX: assume all of an adapter's ports have the same formats */
for
(
unsigned
i
=
0
;
i
<
a
->
num_ports
;
i
++
)
{
xcb_xv_port_t
port
=
a
->
base_id
+
i
;
xcb_xv_grab_port_reply_t
*
gr
=
xcb_xv_grab_port_reply
(
p_sys
->
conn
,
xcb_xv_grab_port
(
p_sys
->
conn
,
port
,
XCB_TIME_CURRENT_TIME
),
NULL
);
uint8_t
result
=
gr
?
gr
->
result
:
0xff
;
free
(
gr
);
if
(
result
==
0
)
{
p_sys
->
port
=
port
;
goto
grabbed_port
;
}
msg_Dbg
(
vd
,
"cannot grab port %"
PRIu32
,
port
);
}
continue
;
grabbed_port:
msg_Dbg
(
vd
,
"using port %"
PRIu32
,
p_sys
->
port
);
p_sys
->
id
=
xfmt
->
id
;
...
...
@@ -404,7 +422,6 @@ static int Open (vlc_object_t *obj)
msg_Err
(
vd
,
"no available XVideo adaptor"
);
goto
error
;
}
#endif
/* Create window */
{
...
...
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