Commit 25b01191 authored by Derk-Jan Hartman's avatar Derk-Jan Hartman

* Fix some crashes because of new playlist core

parent 9001c648
...@@ -867,18 +867,18 @@ static VLCMain *_o_sharedMainInstance = nil; ...@@ -867,18 +867,18 @@ static VLCMain *_o_sharedMainInstance = nil;
{ {
return; return;
} }
/*
vlc_mutex_lock( &p_playlist->object_lock ); vlc_mutex_lock( &p_playlist->object_lock );
o_temp = [NSString stringWithUTF8String: o_temp = [NSString stringWithUTF8String:
p_playlist->pp_items[p_playlist->i_index]->input.psz_name]; p_playlist->p_input.psz_name];
if( o_temp == NULL ) if( o_temp == NULL )
o_temp = [NSString stringWithCString: o_temp = [NSString stringWithCString:
p_playlist->pp_items[p_playlist->i_index]->input.psz_name]; p_playlist->p_input.psz_name];
vlc_mutex_unlock( &p_playlist->object_lock ); vlc_mutex_unlock( &p_playlist->object_lock );
[o_scrollfield setStringValue: o_temp ]; [o_scrollfield setStringValue: o_temp ];
*/
/*p_vout = vlc_object_find( p_intf, VLC_OBJECT_VOUT,
p_vout = vlc_object_find( p_intf, VLC_OBJECT_VOUT,
FIND_ANYWHERE ); FIND_ANYWHERE );
if( p_vout != NULL ) if( p_vout != NULL )
{ {
...@@ -893,7 +893,7 @@ static VLCMain *_o_sharedMainInstance = nil; ...@@ -893,7 +893,7 @@ static VLCMain *_o_sharedMainInstance = nil;
} }
} }
vlc_object_release( (vlc_object_t *)p_vout ); vlc_object_release( (vlc_object_t *)p_vout );
}*/ }
[o_playlist updateRowSelection]; [o_playlist updateRowSelection];
vlc_object_release( p_playlist ); vlc_object_release( p_playlist );
p_intf->p_sys->b_current_title_update = FALSE; p_intf->p_sys->b_current_title_update = FALSE;
......
...@@ -349,9 +349,8 @@ ...@@ -349,9 +349,8 @@
vlc_mutex_lock( &p_playlist->object_lock ); vlc_mutex_lock( &p_playlist->object_lock );
o_title = [NSMutableString stringWithUTF8String: o_title = [NSMutableString stringWithUTF8String:
p_playlist->pp_items[p_playlist->i_index]->input.psz_uri]; p_playlist->p_input.psz_uri];
vlc_mutex_unlock( &p_playlist->object_lock ); vlc_mutex_unlock( &p_playlist->object_lock );
vlc_object_release( p_playlist ); vlc_object_release( p_playlist );
if( o_title != nil ) if( o_title != nil )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment