tests/examples/seek/seek.c: Make sure we reset the slider value to 0.0 without racing...
authorWim Taymans <wim.taymans@gmail.com>
Mon, 31 Dec 2007 13:17:29 +0000 (13:17 +0000)
committerWim Taymans <wim.taymans@gmail.com>
Mon, 31 Dec 2007 13:17:29 +0000 (13:17 +0000)
Original commit message from CVS:
* tests/examples/seek/seek.c: (stop_cb):
Make sure we reset the slider value to 0.0 without racing against a
possible g_idle that sets it to something else.

ChangeLog
tests/examples/seek/seek.c

index 0ee857e..fc580f7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2007-12-31  Wim Taymans  <wim.taymans@collabora.co.uk>
+
+       * tests/examples/seek/seek.c: (stop_cb):
+       Make sure we reset the slider value to 0.0 without racing against a
+       possible g_idle that sets it to something else.
+
 2007-12-31  Thijs Vermeir  <thijsvermeir@gmail.com>
 
        * sys/ximage/ximagesink.c:
index 876a736..fb6ddde 100644 (file)
@@ -1352,10 +1352,11 @@ stop_cb (GtkButton * button, gpointer data)
     if (ret == GST_STATE_CHANGE_FAILURE)
       goto failed;
 
-    set_scale (0.0);
-
     state = GST_STATE_READY;
 
+    set_update_scale (FALSE);
+    set_scale (0.0);
+
     /* if one uses parse_launch, play, stop and play again it fails as all the
      * pads after the demuxer can't be reconnected
      */