Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
GSoC
GSoC2018
macOS
vlc
Commits
4e3c5758
Commit
4e3c5758
authored
Dec 19, 2018
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: avoid copying vd->info
parent
9fc46c6f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
modules/video_output/win32/directdraw.c
modules/video_output/win32/directdraw.c
+4
-7
No files found.
modules/video_output/win32/directdraw.c
View file @
4e3c5758
...
...
@@ -220,11 +220,10 @@ static int Open(vout_display_t *vd, const vout_display_cfg_t *cfg,
if
(
DirectXOpen
(
vd
,
&
fmt
))
goto
error
;
/* */
vout_display_info_t
info
=
vd
->
info
;
info
.
is_slow
=
true
;
info
.
has_double_click
=
true
;
info
.
has_pictures_invalid
=
true
;
/* Setup vout_display now that everything is fine */
vd
->
info
.
is_slow
=
true
;
vd
->
info
.
has_double_click
=
true
;
vd
->
info
.
has_pictures_invalid
=
true
;
/* Interaction TODO support starting with wallpaper mode */
vlc_mutex_init
(
&
sys
->
lock
);
...
...
@@ -235,10 +234,8 @@ static int Open(vout_display_t *vd, const vout_display_cfg_t *cfg,
var_Change
(
vd
,
"video-wallpaper"
,
VLC_VAR_SETTEXT
,
_
(
"Wallpaper"
));
var_AddCallback
(
vd
,
"video-wallpaper"
,
WallpaperCallback
,
NULL
);
/* Setup vout_display now that everything is fine */
video_format_Clean
(
fmtp
);
video_format_Copy
(
fmtp
,
&
fmt
);
vd
->
info
=
info
;
vd
->
pool
=
Pool
;
vd
->
prepare
=
NULL
;
...
...
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