tests/examples/seek/seek.c: When we stop scrubbing, don't leave the pipeline PLAYING...
authorWim Taymans <wim.taymans@gmail.com>
Mon, 26 Feb 2007 11:48:49 +0000 (11:48 +0000)
committerWim Taymans <wim.taymans@gmail.com>
Mon, 26 Feb 2007 11:48:49 +0000 (11:48 +0000)
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.

ChangeLog
tests/examples/seek/seek.c

index b338ee689f2117fdaf094e4a3db2a56353af563a..4559135b2faecd20ddff8fcea1288ceafb539441 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+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>
 
        Patch by: René Stadler <mail at renestadler de>
index 13ca36fffcb1a84891b1d900d0bc81ce95efba5a..f075b8a3b44e3ff796ae55eb01079834e9eab436 100644 (file)
@@ -1209,7 +1209,12 @@ stop_seek (GtkWidget * widget, GdkEventButton * event, gpointer user_data)
   if (seek_timeout_id != 0) {
     g_source_remove (seek_timeout_id);
     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 {
     if (state == GST_STATE_PLAYING) {
       GST_DEBUG ("stop scrub seek, PLAYING");