changeset 3076:5b59df43b93f

Update the playback slider at the end of a seek (bug #31)
author John Lindgren <john.lindgren@tds.net>
date Sun, 26 Apr 2009 16:11:55 -0400
parents eed75824b3f7
children d58963762734
files src/skins/ui_main.c
diffstat 1 files changed, 8 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/src/skins/ui_main.c	Sun Apr 26 14:13:01 2009 -0400
+++ b/src/skins/ui_main.c	Sun Apr 26 16:11:55 2009 -0400
@@ -1215,6 +1215,10 @@
     GTimeVal delta_time;
     gulong now_dur;
 
+    g_source_remove (mainwin_timeout_id);
+    mainwin_timeout_id = 0;
+    seek_state = MAINWIN_SEEK_NIL;
+
     g_get_current_time(&now_time);
 
     delta_time.tv_usec = now_time.tv_usec - cb_time.tv_usec;
@@ -1232,11 +1236,6 @@
         /* interpret as 'seek' */
         mainwin_position_release_cb( mainwin_position, ui_skinned_horizontal_slider_get_position(mainwin_position) );
     }
-
-    seek_state = MAINWIN_SEEK_NIL;
-
-    g_source_remove(mainwin_timeout_id);
-    mainwin_timeout_id = 0;
 }
 
 void
@@ -1257,6 +1256,10 @@
     GTimeVal delta_time;
     gulong now_dur;
 
+    g_source_remove (mainwin_timeout_id);
+    mainwin_timeout_id = 0;
+    seek_state = MAINWIN_SEEK_NIL;
+
     g_get_current_time(&now_time);
 
     delta_time.tv_usec = now_time.tv_usec - cb_time.tv_usec;
@@ -1274,11 +1277,6 @@
         /* interpret as 'seek' */
         mainwin_position_release_cb( mainwin_position, ui_skinned_horizontal_slider_get_position(mainwin_position) );
     }
-
-    seek_state = MAINWIN_SEEK_NIL;
-
-    g_source_remove(mainwin_timeout_id);
-    mainwin_timeout_id = 0;
 }
 
 void