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
bdf005c4
Commit
bdf005c4
authored
Sep 14, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
XCB-X11: fix iterating visual types at different depth
parent
b7a048f1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
modules/video_output/xcb/x11.c
modules/video_output/xcb/x11.c
+7
-7
No files found.
modules/video_output/xcb/x11.c
View file @
bdf005c4
...
...
@@ -195,23 +195,22 @@ static int Open (vlc_object_t *obj)
{
if
(
vt
->
_class
==
XCB_VISUAL_CLASS_TRUE_COLOR
)
{
vid
=
vt
->
visual_id
;
gray
=
false
;
break
;
goto
found_vt
;
}
if
(
fmt
->
depth
==
8
&&
vt
->
_class
==
XCB_VISUAL_CLASS_STATIC_GRAY
)
{
if
(
!
gray
)
continue
;
/* Prefer color over gray scale */
vid
=
vt
->
visual_id
;
chroma
=
VLC_CODEC_GREY
;
goto
found_vt
;
}
}
continue
;
/* The screen does not *really* support this depth */
if
(
!
vid
)
continue
;
/* The screen does not *really* support this depth */
found_vt:
fmt_pic
.
i_chroma
=
chroma
;
vid
=
vt
->
visual_id
;
if
(
!
gray
)
{
fmt_pic
.
i_rmask
=
vt
->
red_mask
;
...
...
@@ -229,7 +228,8 @@ static int Open (vlc_object_t *obj)
goto
error
;
}
msg_Dbg
(
vd
,
"using X11 visual ID 0x%"
PRIx32
,
vid
);
msg_Dbg
(
vd
,
"using X11 visual ID 0x%"
PRIx32
" (depth: %"
PRIu8
")"
,
vid
,
p_sys
->
depth
);
msg_Dbg
(
vd
,
" %"
PRIu8
" bits per pixels, %"
PRIu8
" bits line pad"
,
p_sys
->
bpp
,
p_sys
->
pad
);
...
...
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