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
9797d69d
Commit
9797d69d
authored
Nov 27, 2012
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DirectX: use parent object instead of -incorrectly- pl_Get()
parent
4ba6b7da
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
8 deletions
+4
-8
modules/video_output/msw/direct3d.c
modules/video_output/msw/direct3d.c
+2
-4
modules/video_output/msw/directx.c
modules/video_output/msw/directx.c
+2
-4
No files found.
modules/video_output/msw/direct3d.c
View file @
9797d69d
...
...
@@ -39,7 +39,6 @@
#include <vlc_common.h>
#include <vlc_plugin.h>
#include <vlc_playlist.h>
#include <vlc_vout_display.h>
#include <windows.h>
...
...
@@ -1450,11 +1449,10 @@ static int DesktopCallback(vlc_object_t *object, char const *psz_cmd,
/* FIXME we should have a way to export variable to be saved */
if
(
ch_desktop
)
{
playlist_t
*
p_playlist
=
pl_Get
(
vd
);
/* Modify playlist as well because the vout might have to be
* restarted */
var_Create
(
p_playlis
t
,
"video-wallpaper"
,
VLC_VAR_BOOL
);
var_SetBool
(
p_playlis
t
,
"video-wallpaper"
,
newval
.
b_bool
);
var_Create
(
object
->
p_paren
t
,
"video-wallpaper"
,
VLC_VAR_BOOL
);
var_SetBool
(
object
->
p_paren
t
,
"video-wallpaper"
,
newval
.
b_bool
);
}
return
VLC_SUCCESS
;
}
modules/video_output/msw/directx.c
View file @
9797d69d
...
...
@@ -42,7 +42,6 @@
#include <vlc_common.h>
#include <vlc_plugin.h>
#include <vlc_vout_display.h>
#include <vlc_playlist.h>
/* needed for wallpaper */
#include <vlc_charset.h>
#include <windows.h>
...
...
@@ -1396,11 +1395,10 @@ static int WallpaperCallback(vlc_object_t *object, char const *cmd,
/* FIXME we should have a way to export variable to be saved */
if
(
ch_wallpaper
)
{
playlist_t
*
p_playlist
=
pl_Get
(
vd
);
/* Modify playlist as well because the vout might have to be
* restarted */
var_Create
(
p_playlis
t
,
"video-wallpaper"
,
VLC_VAR_BOOL
);
var_SetBool
(
p_playlis
t
,
"video-wallpaper"
,
newval
.
b_bool
);
var_Create
(
object
->
p_paren
t
,
"video-wallpaper"
,
VLC_VAR_BOOL
);
var_SetBool
(
object
->
p_paren
t
,
"video-wallpaper"
,
newval
.
b_bool
);
}
return
VLC_SUCCESS
;
}
...
...
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