ASYNC state changes are not an error.

Original commit message from CVS:
ASYNC state changes are not an error.
This commit is contained in:
Wim Taymans 2002-12-08 20:08:39 +00:00
parent 8549904056
commit f7d73c91b2

View file

@ -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;