[totem] main: Don't save the current time for DVDs



commit 37d48d386cda4e4f53a3f2c0b5139dde6df31673
Author: Bastien Nocera <hadess hadess net>
Date:   Fri Apr 26 18:43:57 2013 +0200

    main: Don't save the current time for DVDs
    
    Otherwise we'll try to restore the play time from a chapter in
    the menu, and things will break.

 src/totem-session.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/totem-session.c b/src/totem-session.c
index 21073cb..5e76479 100644
--- a/src/totem-session.c
+++ b/src/totem-session.c
@@ -95,13 +95,14 @@ void
 totem_session_save (Totem *totem)
 {
        GFile *file;
-       gint64 curr;
+       gint64 curr = -1;
 
        if (totem->bvw == NULL)
                return;
 
        file = get_session_file ();
-       curr = bacon_video_widget_get_current_time (totem->bvw);
+       if (!totem_playing_dvd (totem->mrl))
+               curr = bacon_video_widget_get_current_time (totem->bvw);
        totem_playlist_save_session_playlist (totem->playlist, file, curr);
        g_object_unref (file);
 }


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