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
8b65aa8a
Commit
8b65aa8a
authored
Oct 19, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
XCB-XV: do not clobber video chroma is port grabbing fails
parent
a74e5b04
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
13 deletions
+12
-13
modules/video_output/xcb/xvideo.c
modules/video_output/xcb/xvideo.c
+12
-13
No files found.
modules/video_output/xcb/xvideo.c
View file @
8b65aa8a
...
...
@@ -356,9 +356,8 @@ static int Open (vlc_object_t *obj)
if
(
r
==
NULL
)
continue
;
const
xcb_xv_image_format_info_t
*
xfmt
;
/* */
/* Look for an image format */
const
xcb_xv_image_format_info_t
*
xfmt
=
NULL
;
const
vlc_fourcc_t
*
chromas
,
chromas_default
[]
=
{
fmt
.
i_chroma
,
VLC_CODEC_RGB32
,
...
...
@@ -373,20 +372,19 @@ static int Open (vlc_object_t *obj)
else
chromas
=
chromas_default
;
for
(
size_t
i
=
0
;
chromas
[
i
];
i
++
)
vlc_fourcc_t
chroma
;
for
(
size_t
i
=
0
;
chromas
[
i
]
&&
(
xfmt
==
NULL
);
i
++
)
{
vlc_fourcc_t
chroma
=
chromas
[
i
];
chroma
=
chromas
[
i
];
xfmt
=
FindFormat
(
vd
,
chroma
,
&
fmt
,
a
->
base_id
,
r
,
&
p_sys
->
att
);
if
(
xfmt
!=
NULL
)
{
fmt
.
i_chroma
=
chroma
;
goto
found_format
;
}
}
free
(
r
);
continue
;
found_format:
if
(
xfmt
==
NULL
)
/* No acceptable image formats */
{
free
(
r
);
continue
;
}
/* Grab a port */
for
(
unsigned
i
=
0
;
i
<
a
->
num_ports
;
i
++
)
{
...
...
@@ -417,6 +415,7 @@ static int Open (vlc_object_t *obj)
p_sys
->
id
=
xfmt
->
id
;
msg_Dbg
(
vd
,
"using image format 0x%"
PRIx32
,
p_sys
->
id
);
fmt
.
i_chroma
=
chroma
;
if
(
xfmt
->
type
==
XCB_XV_IMAGE_FORMAT_INFO_TYPE_RGB
)
{
fmt
.
i_rmask
=
xfmt
->
red_mask
;
...
...
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