]> git.sesse.net Git - vlc/commitdiff
* src/input/input.c: notify the interfaces when the name of an item changes
authorOlivier Teulière <ipkiss@videolan.org>
Thu, 25 Nov 2004 20:25:57 +0000 (20:25 +0000)
committerOlivier Teulière <ipkiss@videolan.org>
Thu, 25 Nov 2004 20:25:57 +0000 (20:25 +0000)
  (useful for shoutcast)
 * modules/gui/wxwindows/timer.cpp: update the item name on the main window

modules/gui/wxwindows/timer.cpp
src/input/input.c

index f094009d6ca4cacdab572b92b4e46b28024686bb..468c535ba2373a32e0bd07b759295512778f54a4 100644 (file)
@@ -157,6 +157,10 @@ void Timer::Notify()
             /* New input or stream map change */
             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 */
             /* FIXME --fenrir */
             /* Change the name of b_old_seekable into b_show_bar or something like that */
index 3d2e0313bdc91c07431efc5f2212ba8ee7244b2a..46bfa585b7ae23cabed9869b53e88b93de004e02 100644 (file)
@@ -1585,6 +1585,7 @@ static int UpdateFromAccess( input_thread_t *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;
     }