Commit 3646783c authored by Felix Paul Kühne's avatar Felix Paul Kühne

Work-around a playlist-core bug which prevents 'intf-change' to be set on-time...

Work-around a playlist-core bug which prevents 'intf-change' to be set on-time after the addition of new inputs.

However, this doubles the idle-CPU load, so we may to fix that in core properly..
parent 967acfe7
...@@ -272,8 +272,8 @@ static int PlaylistChanged( vlc_object_t *p_this, const char *psz_variable, ...@@ -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 ) vlc_value_t old_val, vlc_value_t new_val, void *param )
{ {
intf_thread_t * p_intf = VLCIntf; 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_intf_update = true;
p_intf->p_sys->b_playlist_update = true;
p_intf->p_sys->b_playmode_update = true; p_intf->p_sys->b_playmode_update = true;
p_intf->p_sys->b_current_title_update = true; p_intf->p_sys->b_current_title_update = true;
return VLC_SUCCESS; return VLC_SUCCESS;
...@@ -1452,6 +1452,7 @@ static VLCMain *_o_sharedMainInstance = nil; ...@@ -1452,6 +1452,7 @@ static VLCMain *_o_sharedMainInstance = nil;
{ {
p_intf->p_sys->i_play_status = END_S; p_intf->p_sys->i_play_status = END_S;
p_intf->p_sys->b_intf_update = true; 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]; [self playStatusUpdated: p_intf->p_sys->i_play_status];
[o_embedded_window playStatusUpdated: p_intf->p_sys->i_play_status]; [o_embedded_window playStatusUpdated: p_intf->p_sys->i_play_status];
[self setSubmenusEnabled: FALSE]; [self setSubmenusEnabled: FALSE];
......
...@@ -456,10 +456,8 @@ ...@@ -456,10 +456,8 @@
- (void)playlistUpdated - (void)playlistUpdated
{ {
unsigned int i;
/* Clear indications of any existing column sorting */ /* 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 setIndicatorImage:nil inTableColumn:
[[o_outline_view tableColumns] objectAtIndex:i]]; [[o_outline_view tableColumns] objectAtIndex:i]];
......
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