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.
This commit is contained in:
Wim Taymans 2007-12-31 13:17:29 +00:00
parent d18853b253
commit 1a75314aab
2 changed files with 9 additions and 2 deletions

View file

@ -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:

View 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
*/