tools/gst-launch.c: When we got an error, there is no point in waiting for preroll when shutting down.

Original commit message from CVS:
* tools/gst-launch.c: (main):
When we got an error, there is no point in waiting for preroll when
shutting down.
This commit is contained in:
Wim Taymans 2007-07-03 17:01:51 +00:00
parent 4cc7b818fd
commit 94828d9ac6
2 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2007-07-03 Wim Taymans <wim.taymans@gmail.com>
* tools/gst-launch.c: (main):
When we got an error, there is no point in waiting for preroll when
shutting down.
2007-07-03 Wim Taymans <wim.taymans@gmail.com>
* plugins/elements/gsttee.c: (gst_tee_base_init),

View file

@ -745,7 +745,8 @@ main (int argc, char *argv[])
fprintf (stderr, _("Setting pipeline to PAUSED ...\n"));
gst_element_set_state (pipeline, GST_STATE_PAUSED);
gst_element_get_state (pipeline, &state, &pending, GST_CLOCK_TIME_NONE);
if (!caught_error)
gst_element_get_state (pipeline, &state, &pending, GST_CLOCK_TIME_NONE);
fprintf (stderr, _("Setting pipeline to READY ...\n"));
gst_element_set_state (pipeline, GST_STATE_READY);
gst_element_get_state (pipeline, &state, &pending, GST_CLOCK_TIME_NONE);