# HG changeset patch # User John Lindgren # Date 1240776715 14400 # Node ID 5b59df43b93f64051a0b3d5a2b6efe9fbf387a1f # Parent eed75824b3f79a8def1448d79d94319d8fdb7843 Update the playback slider at the end of a seek (bug #31) diff -r eed75824b3f7 -r 5b59df43b93f src/skins/ui_main.c --- 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