summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@gmail.com>2002-12-08 20:08:39 +0000
committerWim Taymans <wim.taymans@gmail.com>2002-12-08 20:08:39 +0000
commitf7d73c91b2cbd37944e9fede263428cee626497a (patch)
tree9e237d42011dc75a651da78bd2efd87f7cc2beb2
parent85499040565c8252ee36987bc9eabfab1951e2c6 (diff)
ASYNC state changes are not an error.
Original commit message from CVS: ASYNC state changes are not an error.
-rw-r--r--tools/gst-launch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/gst-launch.c b/tools/gst-launch.c
index 86fc483d93..f0a94123e8 100644
--- a/tools/gst-launch.c
+++ b/tools/gst-launch.c
@@ -236,7 +236,7 @@ main(int argc, char *argv[])
gst_event_print_stats();
fprintf(stderr,"RUNNING pipeline\n");
- if (gst_element_set_state (pipeline, GST_STATE_PLAYING) != GST_STATE_SUCCESS) {
+ if (gst_element_set_state (pipeline, GST_STATE_PLAYING) == GST_STATE_FAILURE) {
fprintf(stderr,"pipeline doesn't want to play\n");
res = -1;
goto end;