Commit 6c8b08b0 authored by Wim Taymans's avatar Wim Taymans
Browse files

tests/examples/seek/seek.c: When we stop scrubbing, don't leave the pipeline...

tests/examples/seek/seek.c: When we stop scrubbing, don't leave the pipeline PLAYING when we requested a PAUSED state.

Original commit message from CVS:
* tests/examples/seek/seek.c: (stop_seek):
When we stop scrubbing, don't leave the pipeline PLAYING when we
requested a PAUSED state.
parent 88e94fc2
2007-02-26 Wim Taymans <wim@fluendo.com>
* tests/examples/seek/seek.c: (stop_seek):
When we stop scrubbing, don't leave the pipeline PLAYING when we
requested a PAUSED state.
2007-02-25 Tim-Philipp Müller <tim at centricular dot net> 2007-02-25 Tim-Philipp Müller <tim at centricular dot net>
   
Patch by: René Stadler <mail at renestadler de> Patch by: René Stadler <mail at renestadler de>
...@@ -1209,7 +1209,12 @@ stop_seek (GtkWidget * widget, GdkEventButton * event, gpointer user_data) ...@@ -1209,7 +1209,12 @@ stop_seek (GtkWidget * widget, GdkEventButton * event, gpointer user_data)
if (seek_timeout_id != 0) { if (seek_timeout_id != 0) {
g_source_remove (seek_timeout_id); g_source_remove (seek_timeout_id);
seek_timeout_id = 0; seek_timeout_id = 0;
/* Still scrubbing, so the pipeline is already playing */ /* Still scrubbing, so the pipeline is playing, see if we need PAUSED
* instead. */
if (state == GST_STATE_PAUSED) {
GST_DEBUG ("stop scrub seek, PAUSED");
gst_element_set_state (pipeline, GST_STATE_PAUSED);
}
} else { } else {
if (state == GST_STATE_PLAYING) { if (state == GST_STATE_PLAYING) {
GST_DEBUG ("stop scrub seek, PLAYING"); GST_DEBUG ("stop scrub seek, PLAYING");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment