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
b6563184
Commit
b6563184
authored
Jun 08, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cosmetics
parent
761cb12d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
modules/access/screen/xcb.c
modules/access/screen/xcb.c
+4
-3
No files found.
modules/access/screen/xcb.c
View file @
b6563184
...
...
@@ -157,7 +157,7 @@ static int Open (vlc_object_t *obj)
unsigned
long
ul
=
strtoul
(
demux
->
psz_path
,
&
end
,
0
);
if
(
*
end
||
ul
>
0xffffffff
)
{
msg_Err
(
obj
,
"bad X11
window
%s"
,
demux
->
psz_path
);
msg_Err
(
obj
,
"bad X11
drawable
%s"
,
demux
->
psz_path
);
goto
error
;
}
p_sys
->
window
=
ul
;
...
...
@@ -186,14 +186,15 @@ static int Open (vlc_object_t *obj)
p_sys
->
h
=
geo
->
height
-
p_sys
->
y
;
uint32_t
chroma
=
0
;
uint8_t
bpp
=
geo
->
depth
;
uint8_t
bpp
;
for
(
const
xcb_format_t
*
fmt
=
xcb_setup_pixmap_formats
(
setup
),
*
end
=
fmt
+
xcb_setup_pixmap_formats_length
(
setup
);
fmt
<
end
;
fmt
++
)
{
if
(
fmt
->
depth
!=
geo
->
depth
)
continue
;
switch
(
geo
->
depth
)
bpp
=
fmt
->
depth
;
switch
(
fmt
->
depth
)
{
case
32
:
if
(
fmt
->
bits_per_pixel
==
32
)
...
...
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