stress-playbin: fix error return check

This commit is contained in:
Mark Nauwelaerts 2009-04-29 11:50:03 +02:00
parent 82f3adaa9b
commit 0afe00f290

View file

@ -17,7 +17,7 @@ play_file (const gchar * bin, const gint delay, const gchar * uri)
g_object_set (play, "uri", uri, NULL);
g_printerr ("Playing %s\n", uri);
sret = gst_element_set_state (play, GST_STATE_PLAYING);
if (sret != GST_STATE_CHANGE_ASYNC) {
if (sret != GST_STATE_CHANGE_ASYNC && sret != GST_STATE_CHANGE_SUCCESS) {
g_printerr ("ERROR: state change failed, sret=%d\n", sret);
goto next;
}