]> git.sesse.net Git - vlc/commitdiff
Work-around a playlist-core bug which prevents 'intf-change' to be set on-time after...
authorFelix Paul Kühne <fkuehne@videolan.org>
Sat, 14 Jun 2008 19:23:54 +0000 (21:23 +0200)
committerFelix Paul Kühne <fkuehne@videolan.org>
Sat, 14 Jun 2008 22:04:43 +0000 (00:04 +0200)
However, this doubles the idle-CPU load, so we may to fix that in core properly..

modules/gui/macosx/intf.m
modules/gui/macosx/playlist.m

index 4069296a2d9405066f96fb61d1d6936cd419441f..e22aa06c757c915044dab0035c682a82e4473422 100644 (file)
@@ -272,8 +272,8 @@ static int PlaylistChanged( vlc_object_t *p_this, const char *psz_variable,
                      vlc_value_t old_val, vlc_value_t new_val, void *param )
 {
     intf_thread_t * p_intf = VLCIntf;
-    p_intf->p_sys->b_playlist_update = true;
     p_intf->p_sys->b_intf_update = true;
+    p_intf->p_sys->b_playlist_update = true;
     p_intf->p_sys->b_playmode_update = true;
     p_intf->p_sys->b_current_title_update = true;
     return VLC_SUCCESS;
@@ -1452,6 +1452,7 @@ static VLCMain *_o_sharedMainInstance = nil;
     {
         p_intf->p_sys->i_play_status = END_S;
         p_intf->p_sys->b_intf_update = true;
+        p_intf->p_sys->b_playlist_update = true;
         [self playStatusUpdated: p_intf->p_sys->i_play_status];
         [o_embedded_window playStatusUpdated: p_intf->p_sys->i_play_status];
         [self setSubmenusEnabled: FALSE];
index b9927dd096c9ed6e69076e26474cc766ee844f30..866e852762e483bf7c9d6da31a36ca7dc8aaeeb7 100644 (file)
 
 - (void)playlistUpdated
 {
-    unsigned int i;
-
     /* Clear indications of any existing column sorting */
-    for( i = 0 ; i < [[o_outline_view tableColumns] count] ; i++ )
+    for( unsigned int i = 0 ; i < [[o_outline_view tableColumns] count] ; i++ )
     {
         [o_outline_view setIndicatorImage:nil inTableColumn:
                             [[o_outline_view tableColumns] objectAtIndex:i]];