]> git.sesse.net Git - vlc/blobdiff - modules/gui/wxwidgets/input_manager.cpp
[patch] unifying meta-information access, the 2nd by Daniel Stränger
[vlc] / modules / gui / wxwidgets / input_manager.cpp
index f77741863c29d3401511debfa2c5acd667abf383..a062926b79e4defc2b1624759d4a4387eff6f1fd 100644 (file)
@@ -145,7 +145,7 @@ void InputManager::UpdateInput()
 void InputManager::UpdateNowPlaying()
 {
     char *psz_now_playing = vlc_input_item_GetInfo( p_input->input.p_item,
-                _("Meta-information"), _(VLC_META_NOW_PLAYING) );
+                _(VLC_META_INFO_CAT), _(VLC_META_NOW_PLAYING) );
     if( psz_now_playing && *psz_now_playing )
     {
         p_main_intf->statusbar->SetStatusText(
@@ -316,10 +316,8 @@ void InputManager::Update()
         var_Get( p_input, "position", &pos );
         var_Get( p_input, "length", &len );
 
-        if( len.i_time > 0 && pos.f_float >= 0 &&
-            !slider->IsShown() ) ShowSlider();
-        else if( len.i_time < 0 && pos.f_float <= 0 &&
-                 slider->IsShown() ) HideSlider();
+        if( pos.f_float > 0 && !slider->IsShown() ) ShowSlider();
+        else if(  pos.f_float <= 0 &&  slider->IsShown() ) HideSlider();
 
         /* Update the slider if the user isn't dragging it. */
         if( slider->IsShown() && b_slider_free )