tools/gst-launch.c: Don't block forever for the state change to complete, the pipelin...
authorWim Taymans <wim.taymans@gmail.com>
Tue, 19 Jul 2005 14:52:59 +0000 (14:52 +0000)
committerWim Taymans <wim.taymans@gmail.com>
Tue, 19 Jul 2005 14:52:59 +0000 (14:52 +0000)
Original commit message from CVS:
* tools/gst-launch.c: (check_intr), (event_loop), (main):
Don't block forever for the state change to complete, the
pipeline already did with a sensible timeout.

ChangeLog
tools/gst-launch.c

index 4f76b28..42acdcd 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2005-07-19  Wim Taymans  <wim@fluendo.com>
 
+       * tools/gst-launch.c: (check_intr), (event_loop), (main):
+       Don't block forever for the state change to complete, the
+       pipeline already did with a sensible timeout.
+
+2005-07-19  Wim Taymans  <wim@fluendo.com>
+
        * gst/base/gstbasesrc.c: (gst_base_src_get_range):
        Make sure we never call the create function is we
        got deactivated.
index 9fc6c73..b0fe2c8 100644 (file)
@@ -293,8 +293,8 @@ check_intr (GstElement * pipeline)
         NULL, "pipeline interrupted");
     gst_bus_post (bus, message);
 
+    /* pipeline will wait for element to go to PAUSED */
     gst_element_set_state (pipeline, GST_STATE_PAUSED);
-    gst_element_get_state (pipeline, NULL, NULL, NULL);
     g_print ("Pipeline paused.\n");
 
     gst_object_unref (bus);