mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-24 08:08:22 +00:00
stress-playbin: fix error return check
This commit is contained in:
parent
82f3adaa9b
commit
0afe00f290
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue