]> git.sesse.net Git - vlc/blobdiff - modules/gui/wxwidgets/input_manager.cpp
Removes trailing spaces. Removes tabs.
[vlc] / modules / gui / wxwidgets / input_manager.cpp
index 2add7473e10a9bd194ef383cfeaf1f0df8ac27f1..98ed4beea743314467015160e42cf3f790730783 100644 (file)
@@ -91,7 +91,7 @@ static LRESULT CALLBACK MovieSliderWindowProc(HWND hWnd, UINT uMsg, WPARAM wPara
 
                 /* following is only valid for horizontal a trackbar */
                 newpos = ((click.x-tRect.left-(thumb/2))*(max-min)+((tRect.right-tRect.left-thumb)/2))
-                      /(tRect.right-tRect.left-thumb);
+               /(tRect.right-tRect.left-thumb);
 
                 /* set new postion */
                 SendMessage(hWnd, TBM_SETPOS, TRUE, min+newpos);
@@ -210,7 +210,7 @@ void InputManager::UpdateInput()
 
 void InputManager::UpdateNowPlaying()
 {
-    const char *psz_now_playing = input_item_GetNowPlaying( input_GetItem(p_input) );
+    char *psz_now_playing = input_item_GetNowPlaying( input_GetItem(p_input) );
     if( psz_now_playing && *psz_now_playing )
     {
         p_main_intf->statusbar->SetStatusText(
@@ -222,6 +222,7 @@ void InputManager::UpdateNowPlaying()
         p_main_intf->statusbar->SetStatusText(
                    wxU(input_GetItem(p_input)->psz_name), 2 );
     }
+    free( psz_now_playing );
 }
 
 void InputManager::UpdateButtons( vlc_bool_t b_play )