Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC
Manage
Activity
Members
Labels
Plan
Issues
4k
Issue boards
Milestones
Code
Merge requests
451
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VideoLAN
VLC
Commits
dc8f95ec
Commit
dc8f95ec
authored
3 years ago
by
Rémi Denis-Courmont
Committed by
Hugo Beauzée-Luyssen
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
drm: initialise sys explicitly
parent
743fa40a
No related branches found
Branches containing commit
No related tags found
1 merge request
!1640
drm: fix pixel format selection
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/video_output/drm/display.c
+4
-3
4 additions, 3 deletions
modules/video_output/drm/display.c
with
4 additions
and
3 deletions
modules/video_output/drm/display.c
+
4
−
3
View file @
dc8f95ec
...
...
@@ -152,7 +152,6 @@ static int Open(vout_display_t *vd,
video_format_t
*
fmtp
,
vlc_video_context
*
context
)
{
vout_window_t
*
wnd
=
vd
->
cfg
->
window
;
vout_display_sys_t
*
sys
;
uint_fast32_t
drm_fourcc
=
0
;
video_format_t
fmt
;
...
...
@@ -162,8 +161,8 @@ static int Open(vout_display_t *vd,
/*
* Allocate instance and initialize some members
*/
v
d
->
sys
=
sys
=
vlc_obj_
c
alloc
(
VLC_OBJECT
(
vd
),
1
,
sizeof
(
*
sys
));
if
(
!
sys
)
v
out_display_sys_t
*
sys
=
vlc_obj_
m
alloc
(
VLC_OBJECT
(
vd
),
sizeof
(
*
sys
));
if
(
unlikely
(
sys
==
NULL
)
)
return
VLC_ENOMEM
;
char
*
chroma
=
var_InheritString
(
vd
,
"kms-drm-chroma"
);
...
...
@@ -226,7 +225,9 @@ static int Open(vout_display_t *vd,
}
}
sys
->
front_buf
=
0
;
*
fmtp
=
fmt
;
vd
->
sys
=
sys
;
vd
->
ops
=
&
ops
;
(
void
)
context
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment