[vlc-devel] commit: macosx: Fix addNode:. (Pierre d'Herbemont )
git version control
git at videolan.org
Sat Aug 2 15:51:02 CEST 2008
vlc | branch: master | Pierre d'Herbemont <pdherbemont at videolan.org> | Sat Aug 2 15:53:20 2008 +0200| [d253749f68a85d8c720e66e4a0f7ad9693ba84e3] | committer: Pierre d'Herbemont
macosx: Fix addNode:.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d253749f68a85d8c720e66e4a0f7ad9693ba84e3
---
modules/gui/macosx/playlist.m | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/modules/gui/macosx/playlist.m b/modules/gui/macosx/playlist.m
index 30daeb0..7598e4c 100644
--- a/modules/gui/macosx/playlist.m
+++ b/modules/gui/macosx/playlist.m
@@ -1350,24 +1350,24 @@
int ret_v;
char *psz_name = NULL;
- playlist_item_t * p_item;
ret_v = intf_UserStringInput( p_playlist, _("New Node"),
_("Please enter a name for the new node."), &psz_name );
+ PL_LOCK;
if( ret_v != DIALOG_CANCELLED && psz_name && *psz_name )
- p_item = playlist_NodeCreate( p_playlist, psz_name,
+ {
+ playlist_NodeCreate( p_playlist, psz_name,
p_playlist->p_local_category, 0, NULL );
+ }
else if(! config_GetInt( p_playlist, "interact" ) )
{
/* in case that the interaction is disabled, just give it a bogus name */
- p_item = playlist_NodeCreate( p_playlist, _("Empty Folder"),
+ playlist_NodeCreate( p_playlist, _("Empty Folder"),
p_playlist->p_local_category, 0, NULL );
}
+ PL_UNLOCK;
- if(! p_item )
- msg_Warn( VLCIntf, "node creation failed or cancelled by user" );
-
- vlc_object_release( p_playlist );
+ pl_Release( VLCIntf );
[ourPool release];
}
More information about the vlc-devel
mailing list