tests/examples/seek/seek.c: Stop the scale updater when we start grabing the slider. Don't wait for the pipeline to b...

Original commit message from CVS:
2006-10-13  Julien MOUTTE  <julien@moutte.net>

* tests/examples/seek/seek.c: (do_seek), (start_seek),
(rate_spinbutton_changed_cb), (msg_state_changed): Stop the
scale
updater when we start grabing the slider. Don't wait for the
pipeline to be PAUSED.
This commit is contained in:
Julien Moutte 2006-10-13 11:25:10 +00:00
parent e01b8a62ca
commit 9e9538c658
2 changed files with 9 additions and 0 deletions

View file

@ -1,3 +1,10 @@
2006-10-13 Julien MOUTTE <julien@moutte.net>
* tests/examples/seek/seek.c: (do_seek), (start_seek),
(rate_spinbutton_changed_cb), (msg_state_changed): Stop the scale
updater when we start grabing the slider. Don't wait for the
pipeline to be PAUSED.
2006-10-13 Tim-Philipp Müller <tim at centricular dot net> 2006-10-13 Tim-Philipp Müller <tim at centricular dot net>
* gst-libs/gst/interfaces/mixer.c: (gst_mixer_list_tracks), * gst-libs/gst/interfaces/mixer.c: (gst_mixer_list_tracks),

View file

@ -1137,6 +1137,8 @@ start_seek (GtkWidget * widget, GdkEventButton * event, gpointer user_data)
if (event->type != GDK_BUTTON_PRESS) if (event->type != GDK_BUTTON_PRESS)
return FALSE; return FALSE;
set_update_scale (FALSE);
if (state == GST_STATE_PLAYING && flush_seek && scrub) { if (state == GST_STATE_PLAYING && flush_seek && scrub) {
GST_DEBUG ("start scrub seek, PAUSE"); GST_DEBUG ("start scrub seek, PAUSE");
gst_element_set_state (pipeline, GST_STATE_PAUSED); gst_element_set_state (pipeline, GST_STATE_PAUSED);