[totem/wip/hadess/session-save: 1/2] main: Small clean up in totem_session_save()



commit 8d2fa963a6cee2daa9d99cc121243987f23ba874
Author: Bastien Nocera <hadess hadess net>
Date:   Thu Feb 27 11:55:18 2020 +0100

    main: Small clean up in totem_session_save()
    
    Make sure to pass -1 as was intended rather than 0. Note that this makes
    no difference to the called code as it checks for > 0.

 src/totem-session.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/totem-session.c b/src/totem-session.c
index 6e2c5a2b0..ba5a42780 100644
--- a/src/totem-session.c
+++ b/src/totem-session.c
@@ -101,8 +101,8 @@ totem_session_save (Totem *totem)
 
        file = get_session_file ();
        if (!totem_playing_dvd (totem->mrl))
-               curr = bacon_video_widget_get_current_time (totem->bvw);
-       totem_playlist_save_session_playlist (totem->playlist, file, curr / 1000);
+               curr = bacon_video_widget_get_current_time (totem->bvw) / 1000;
+       totem_playlist_save_session_playlist (totem->playlist, file, curr);
 }
 
 void


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]