]> git.sesse.net Git - vlc/blobdiff - modules/gui/skins2/src/skin_main.cpp
s/pl_Yield/pl_Hold/
[vlc] / modules / gui / skins2 / src / skin_main.cpp
index 3e1a007f42445e13bc68ad15f6d0e8c879766264..6c4572767c127787c98af54de3920399bd31f074 100644 (file)
@@ -99,7 +99,7 @@ static int Open( vlc_object_t *p_this )
     p_intf->p_sys->p_sub = msg_Subscribe( p_intf );
 
     p_intf->p_sys->p_input = NULL;
-    p_intf->p_sys->p_playlist = pl_Yield( p_intf );
+    p_intf->p_sys->p_playlist = pl_Hold( p_intf );
 
     // Initialize "singleton" objects
     p_intf->p_sys->p_logger = NULL;
@@ -319,7 +319,7 @@ static int DemuxOpen( vlc_object_t *p_this )
         // Do nothing is skins2 is not the main interface
         if( var_Type( p_intf, "skin-to-load" ) == VLC_VAR_STRING )
         {
-            playlist_t *p_playlist = pl_Yield( p_this );
+            playlist_t *p_playlist = pl_Hold( p_this );
             // Make sure the item is deleted afterwards
             /// \bug does not always work
             p_playlist->status.p_item->i_flags |= PLAYLIST_REMOVE_FLAG;