Commit f90d9508 authored by Olivier Teulière's avatar Olivier Teulière

* src/input/input.c: notify the interfaces when the name of an item changes

  (useful for shoutcast)
 * modules/gui/wxwindows/timer.cpp: update the item name on the main window
parent 6f7bdfc4
...@@ -157,6 +157,10 @@ void Timer::Notify() ...@@ -157,6 +157,10 @@ void Timer::Notify()
/* New input or stream map change */ /* New input or stream map change */
p_intf->p_sys->b_playing = 1; p_intf->p_sys->b_playing = 1;
/* Update the item name */
p_main_interface->statusbar->SetStatusText(
wxU(p_intf->p_sys->p_input->input.p_item->psz_name), 2 );
/* Manage the slider */ /* Manage the slider */
/* FIXME --fenrir */ /* FIXME --fenrir */
/* Change the name of b_old_seekable into b_show_bar or something like that */ /* Change the name of b_old_seekable into b_show_bar or something like that */
......
...@@ -1585,6 +1585,7 @@ static int UpdateFromAccess( input_thread_t *p_input ) ...@@ -1585,6 +1585,7 @@ static int UpdateFromAccess( input_thread_t *p_input )
} }
UpdateMeta( p_input ); UpdateMeta( p_input );
var_SetBool( p_input, "item-change", p_input->input.p_item->i_id );
} }
p_access->info.i_update &= ~INPUT_UPDATE_META; p_access->info.i_update &= ~INPUT_UPDATE_META;
} }
......
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