diff --git a/tests/icles/playback/test2.c b/tests/icles/playback/test2.c index 28f62e53f6..9801ae0b7e 100644 --- a/tests/icles/playback/test2.c +++ b/tests/icles/playback/test2.c @@ -32,7 +32,7 @@ main (gint argc, gchar * argv[]) g_object_set (G_OBJECT (player), "uri", argv[1], NULL); res = gst_element_set_state (player, GST_STATE_PLAYING); - if (res != GST_STATE_CHANGE_SUCCESS) { + if (res == GST_STATE_CHANGE_FAILURE) { g_print ("could not play\n"); return -1; } diff --git a/tests/icles/playback/test4.c b/tests/icles/playback/test4.c index 8fdeb3f418..410bacfe1e 100644 --- a/tests/icles/playback/test4.c +++ b/tests/icles/playback/test4.c @@ -48,7 +48,7 @@ main (gint argc, gchar * argv[]) g_print ("play...\n"); res = gst_element_set_state (player, GST_STATE_PLAYING); - if (res != GST_STATE_CHANGE_SUCCESS) { + if (res == GST_STATE_CHANGE_FAILURE) { g_print ("could not play\n"); return -1; } @@ -58,8 +58,8 @@ main (gint argc, gchar * argv[]) g_print ("pause...\n"); res = gst_element_set_state (player, GST_STATE_PAUSED); - if (res != GST_STATE_CHANGE_SUCCESS) { - g_print ("could not play\n"); + if (res == GST_STATE_CHANGE_FAILURE) { + g_print ("could not pause\n"); return -1; } @@ -68,7 +68,7 @@ main (gint argc, gchar * argv[]) g_print ("play...\n"); res = gst_element_set_state (player, GST_STATE_PLAYING); - if (res != GST_STATE_CHANGE_SUCCESS) { + if (res == GST_STATE_CHANGE_FAILURE) { g_print ("could not play\n"); return -1; } @@ -88,7 +88,7 @@ main (gint argc, gchar * argv[]) g_print ("play...\n"); res = gst_element_set_state (player, GST_STATE_PLAYING); - if (res != GST_STATE_CHANGE_SUCCESS) { + if (res == GST_STATE_CHANGE_FAILURE) { g_print ("could not play\n"); return -1; }