[totem] Fix position setting on session restore



commit bde645c86b798f06c16f1b3547f9e0fbc8541165
Author: Ilya Murav'jov <muravev yandex ru>
Date:   Wed Apr 7 18:52:13 2010 +0100

    Fix position setting on session restore
    
    Copy/paste error...
    
    https://bugzilla.gnome.org/show_bug.cgi?id=614125

 src/totem-object.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/totem-object.c b/src/totem-object.c
index d7d02a1..2f13896 100644
--- a/src/totem-object.c
+++ b/src/totem-object.c
@@ -2535,7 +2535,8 @@ update_seekable (Totem *totem)
 	action = gtk_action_group_get_action (action_group, "skip-backwards");
 	gtk_action_set_sensitive (action, seekable);
 
-	/* This is for the session restore to seek */
+	/* This is for the session restore and the position saving
+	 * to seek to the saved time */
 	if (seekable != FALSE) {
 		if (totem->seek_to != 0) {
 			bacon_video_widget_seek_time (totem->bvw,
@@ -2543,7 +2544,7 @@ update_seekable (Totem *totem)
 		}
 		if (totem->seek_to_start != 0) {
 			bacon_video_widget_seek_time (totem->bvw,
-						      totem->seek_to, NULL);
+						      totem->seek_to_start, NULL);
 			totem_action_pause (totem);
 		}
 	}



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