]> git.sesse.net Git - vlc/blobdiff - modules/video_output/msw/directx.c
the vout might still run after the playlist termination, so we don't want to use...
[vlc] / modules / video_output / msw / directx.c
index 56aade1f8be2968483240de30caabe42c8b1ffb9..cd8ed738c6450cde3a6bd868830b5db81172ee6e 100644 (file)
@@ -2125,16 +2125,14 @@ static int WallpaperCallback( vlc_object_t *p_this, char const *psz_cmd,
     {
         playlist_t *p_playlist;
 
-        p_playlist =
-            (playlist_t *)vlc_object_find( p_this, VLC_OBJECT_PLAYLIST,
-                                           FIND_PARENT );
+        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 );
         }