]> git.sesse.net Git - vlc/commitdiff
playlist: Make sure we don't pl_Release(p_playlist).
authorPierre d'Herbemont <pdherbemont@videolan.org>
Sat, 2 Aug 2008 03:24:36 +0000 (05:24 +0200)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Sat, 2 Aug 2008 03:24:36 +0000 (05:24 +0200)
In those case the pl_* API doesn't seems convienent/well used.

modules/gui/beos/InterfaceWindow.cpp
modules/gui/wxwidgets/dialogs/playlist.cpp
modules/gui/wxwidgets/playlist_manager.cpp
modules/misc/lua/libs/playlist.c

index 82c7563e6f1ba0d3c90250d74f8702a9c2d3ba0c..03b304651f32d60cbdb157e14c227b0f50114885 100644 (file)
@@ -354,7 +354,7 @@ InterfaceWindow::~InterfaceWindow()
     }
     if( p_playlist )
     {
-        pl_Release( p_playlist );
+        vlc_object_release( p_playlist );
     }
 #if 0
     if( fPlaylistWindow )
index c29a77f211899f7feebfbe56366c759fcb3e2851..9ca6fc98ff4a4cf1cc62e92e66a56a2cd23cddf5 100644 (file)
@@ -424,7 +424,7 @@ Playlist::~Playlist()
     var_DelCallback( p_playlist, "intf-change", PlaylistChanged, this );
     var_DelCallback( p_playlist, "item-append", ItemAppended, this );
     var_DelCallback( p_playlist, "item-deleted", ItemDeleted, this );
-    pl_Release( p_playlist );
+    vlc_object_release( p_playlist );
 }
 
 /**********************************************************************
index d853bf9b7eda911fe1f69f103a605bed92942028..ce2628b13c5d6db3431accedd696db3943875547 100644 (file)
@@ -187,7 +187,7 @@ PlaylistManager::~PlaylistManager()
     var_DelCallback( p_playlist, "intf-change", PlaylistChanged, this );
     var_DelCallback( p_playlist, "item-append", ItemAppended, this );
     var_DelCallback( p_playlist, "item-deleted", ItemDeleted, this );
-    pl_Release( p_playlist );
+    vlc_object_release( p_playlist );
 }
 
 /*****************************************************************************
index 9dfe97c6cc948dd9959844a155bc729068e6151e..ff65f3e3e27bc6872bf6ebeef9f109ca23f7debc 100644 (file)
@@ -56,7 +56,7 @@ playlist_t *vlclua_get_playlist_internal( lua_State *L )
 
 void vlclua_release_playlist_internal( playlist_t *p_playlist )
 {
-    pl_Release( p_playlist );
+    vlc_object_release( p_playlist );
 }
 
 static int vlclua_playlist_prev( lua_State * L )