+- (void)setScrollField:(NSString *)o_string stopAfter:(int)timeout
+{
+ if( timeout != -1 )
+ i_end_scroll = mdate() + timeout;
+ else
+ i_end_scroll = -1;
+ [o_scrollfield setStringValue: o_string];
+}
+
+- (void)resetScrollField
+{
+ i_end_scroll = -1;
+#define p_input p_intf->p_sys->p_input
+ if( p_input && !p_input->b_die )
+ {
+ NSString *o_temp;
+ playlist_t * p_playlist = vlc_object_find( p_intf, VLC_OBJECT_PLAYLIST,
+ FIND_ANYWHERE );
+ if( p_playlist == NULL )
+ {
+ return;
+ }
+ o_temp = [NSString stringWithUTF8String:
+ p_playlist->status.p_item->input.psz_name];
+ if( o_temp == NULL )
+ o_temp = [NSString stringWithCString:
+ p_playlist->status.p_item->input.psz_name];
+ [self setScrollField: o_temp stopAfter:-1];
+ vlc_object_release( p_playlist );
+ return;
+ }
+#undef p_input
+ [self setScrollField: _NS("VLC media player") stopAfter:-1];
+}
+