X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Fgui%2Fmacosx%2Fplaylistinfo.m;h=aa164777a032870ac5c9644b5ec42a31549af163;hb=2927b6247501a12e5ce08101c4820951429e8639;hp=6b6d61023354d2694c4acc67d9bfa05fe239968b;hpb=ac7ed5b9c271fdd055cf29cbaa15950fa5e19061;p=vlc diff --git a/modules/gui/macosx/playlistinfo.m b/modules/gui/macosx/playlistinfo.m index 6b6d610233..aa164777a0 100644 --- a/modules/gui/macosx/playlistinfo.m +++ b/modules/gui/macosx/playlistinfo.m @@ -1,7 +1,7 @@ /***************************************************************************** r playlistinfo.m: MacOS X interface module ***************************************************************************** - * Copyright (C) 2002-2004 VideoLAN + * Copyright (C) 2002-2005 the VideoLAN team * $Id$ * * Authors: Benjamin Pracht @@ -18,7 +18,7 @@ * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. *****************************************************************************/ /***************************************************************************** @@ -142,7 +142,7 @@ FIND_ANYWHERE ); vlc_value_t val; - if ([self isItemInPlaylist: p_item] ) + if( [self isItemInPlaylist: p_item] ) { vlc_mutex_lock( &p_item->input.lock ); @@ -154,7 +154,7 @@ val.b_bool = VLC_TRUE; var_Set( p_playlist, "intf-change", val ); } - + vlc_object_release( p_playlist ); [o_info_window orderOut: self]; } @@ -260,7 +260,10 @@ static VLCInfoTreeItem *o_root_item = nil; o_value = [o_item_value copy]; i_object_id = i_id; o_parent = o_parent_item; - p_item = [[[VLCMain sharedInstance] getInfo] getItem]; + if( [[VLCMain sharedInstance] getInfo] != nil ) + p_item = [[[VLCMain sharedInstance] getInfo] getItem]; + else + p_item = NULL; } return( self ); }