[vlc-devel] commit: playlist: Make sure we don't pl_Release(p_playlist). (Pierre d' Herbemont )
git version control
git at videolan.org
Sat Aug 2 05:22:29 CEST 2008
vlc | branch: master | Pierre d'Herbemont <pdherbemont at videolan.org> | Sat Aug 2 05:24:36 2008 +0200| [7ca4e3eb624251feb1f97cfc25104cce473e04a0] | committer: Pierre d'Herbemont
playlist: Make sure we don't pl_Release(p_playlist).
In those case the pl_* API doesn't seems convienent/well used.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7ca4e3eb624251feb1f97cfc25104cce473e04a0
---
modules/gui/beos/InterfaceWindow.cpp | 2 +-
modules/gui/wxwidgets/dialogs/playlist.cpp | 2 +-
modules/gui/wxwidgets/playlist_manager.cpp | 2 +-
modules/misc/lua/libs/playlist.c | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/modules/gui/beos/InterfaceWindow.cpp b/modules/gui/beos/InterfaceWindow.cpp
index 82c7563..03b3046 100644
--- a/modules/gui/beos/InterfaceWindow.cpp
+++ b/modules/gui/beos/InterfaceWindow.cpp
@@ -354,7 +354,7 @@ InterfaceWindow::~InterfaceWindow()
}
if( p_playlist )
{
- pl_Release( p_playlist );
+ vlc_object_release( p_playlist );
}
#if 0
if( fPlaylistWindow )
diff --git a/modules/gui/wxwidgets/dialogs/playlist.cpp b/modules/gui/wxwidgets/dialogs/playlist.cpp
index c29a77f..9ca6fc9 100644
--- a/modules/gui/wxwidgets/dialogs/playlist.cpp
+++ b/modules/gui/wxwidgets/dialogs/playlist.cpp
@@ -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 );
}
/**********************************************************************
diff --git a/modules/gui/wxwidgets/playlist_manager.cpp b/modules/gui/wxwidgets/playlist_manager.cpp
index d853bf9..ce2628b 100644
--- a/modules/gui/wxwidgets/playlist_manager.cpp
+++ b/modules/gui/wxwidgets/playlist_manager.cpp
@@ -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 );
}
/*****************************************************************************
diff --git a/modules/misc/lua/libs/playlist.c b/modules/misc/lua/libs/playlist.c
index 9dfe97c..ff65f3e 100644
--- a/modules/misc/lua/libs/playlist.c
+++ b/modules/misc/lua/libs/playlist.c
@@ -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 )
More information about the vlc-devel
mailing list