[totem] main: Remove unused "seek_to" variable



commit 8441c648c4a2f5f800cee737c83450563bc0c9f8
Author: Bastien Nocera <hadess hadess net>
Date:   Mon Mar 18 09:24:01 2013 +0100

    main: Remove unused "seek_to" variable
    
    We use seek_to_start for the session restore.

 src/totem-object.c  |    6 ------
 src/totem-private.h |    1 -
 2 files changed, 0 insertions(+), 7 deletions(-)
---
diff --git a/src/totem-object.c b/src/totem-object.c
index 51e33c6..008c3ef 100644
--- a/src/totem-object.c
+++ b/src/totem-object.c
@@ -1620,7 +1620,6 @@ totem_action_set_mrl (TotemObject *totem,
                      const char *subtitle)
 {
        if (totem->mrl != NULL) {
-               totem->seek_to = 0;
                totem->seek_to_start = 0;
 
                g_clear_pointer (&totem->mrl, g_free);
@@ -2346,7 +2345,6 @@ on_error_event (BaconVideoWidget *bvw, char *message,
 {
        /* Clear the seek if it's there, we only want to try and seek
         * the first file, even if it's not there */
-       totem->seek_to = 0;
        totem->seek_to_start = 0;
 
        if (playback_stopped)
@@ -2420,12 +2418,8 @@ update_seekable (TotemObject *totem)
                        bacon_video_widget_seek_time (totem->bvw,
                                                      totem->seek_to_start, FALSE, NULL);
                        totem_action_pause (totem);
-               } else if (totem->seek_to != 0) {
-                       bacon_video_widget_seek_time (totem->bvw,
-                                                     totem->seek_to, FALSE, NULL);
                }
        }
-       totem->seek_to = 0;
        totem->seek_to_start = 0;
 
        g_object_notify (G_OBJECT (totem), "seekable");
diff --git a/src/totem-private.h b/src/totem-private.h
index 8807070..3036643 100644
--- a/src/totem-private.h
+++ b/src/totem-private.h
@@ -145,7 +145,6 @@ struct _TotemObject {
 
        /* other */
        char *mrl;
-       gint64 seek_to;
        TotemPlaylist *playlist;
        GSettings *settings;
        TotemStates state;


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