X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Fvideo_output%2Fmsw%2Fdirectx.c;h=1418a1b73428e68ae62d206f0322324313ea9142;hb=ed3444539a2fb2c53303f63ddf8974066123e5d9;hp=aab3e883c725e34ccf0bee7f4be9798c4b9a5926;hpb=4a6b8ccce6369567aa547bd01b4b8d8337d08cbb;p=vlc diff --git a/modules/video_output/msw/directx.c b/modules/video_output/msw/directx.c index aab3e883c7..1418a1b734 100644 --- a/modules/video_output/msw/directx.c +++ b/modules/video_output/msw/directx.c @@ -2123,17 +2123,15 @@ static int WallpaperCallback( vlc_object_t *p_this, char const *psz_cmd, if( (newval.b_bool && !p_vout->p_sys->b_wallpaper) || (!newval.b_bool && p_vout->p_sys->b_wallpaper) ) { - playlist_t *p_playlist; + playlist_t *p_playlist = pl_Yield( p_vout ); - p_playlist = vlc_object_find( p_this, - VLC_OBJECT_PLAYLIST, FIND_ANYWHERE ); if( p_playlist ) { /* Modify playlist as well because the vout might have to be * restarted */ var_Create( p_playlist, "directx-wallpaper", VLC_VAR_BOOL ); var_Set( p_playlist, "directx-wallpaper", newval ); - vlc_object_release( p_playlist ); + pl_Release( p_playlist ); } p_vout->p_sys->i_changes |= DX_WALLPAPER_CHANGE;