X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Fvideo_output%2Fmsw%2Fdirectx.c;h=a6ee80b852008bf3970f465801003e1baa3a461e;hb=6903d514d3ea8113f91b1bedde862607f7efc92a;hp=aab3e883c725e34ccf0bee7f4be9798c4b9a5926;hpb=00b95848260cd44f140a05da8aa5baf13580e2d3;p=vlc diff --git a/modules/video_output/msw/directx.c b/modules/video_output/msw/directx.c index aab3e883c7..a6ee80b852 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_vout ); } p_vout->p_sys->i_changes |= DX_WALLPAPER_CHANGE;