From: Wim Taymans Date: Mon, 31 Dec 2007 13:17:29 +0000 (+0000) Subject: tests/examples/seek/seek.c: Make sure we reset the slider value to 0.0 without racing... X-Git-Tag: RELEASE-0_10_16~38 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1a75314aabfbee428da3cbfc001b59ccc1603610;p=platform%2Fupstream%2Fgst-plugins-base.git tests/examples/seek/seek.c: Make sure we reset the slider value to 0.0 without racing against a possible g_idle that ... 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. --- diff --git a/ChangeLog b/ChangeLog index 0ee857e..fc580f7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-12-31 Wim Taymans + + * 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 * sys/ximage/ximagesink.c: diff --git a/tests/examples/seek/seek.c b/tests/examples/seek/seek.c index 876a736..fb6ddde 100644 --- a/tests/examples/seek/seek.c +++ b/tests/examples/seek/seek.c @@ -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 */