player: Fix unit test for minor API change
authorSebastian Dröge <sebastian@centricular.com>
Thu, 15 Sep 2016 12:58:35 +0000 (14:58 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Thu, 15 Sep 2016 12:58:35 +0000 (14:58 +0200)
tests/check/libs/player.c

index e4c83fc70f8d991ecf96bf0e865feee61f233af8..8c203b9df55da0932187accb6c686af888c8080c 100644 (file)
@@ -764,7 +764,7 @@ test_play_error_invalid_external_suburi_cb (GstPlayer * player,
 
     new_state->test_data = GINT_TO_POINTER (steps + 1);
     /* load invalid suburi */
-    fail_unless (gst_player_set_subtitle_uri (player, suburi) != FALSE);
+    gst_player_set_subtitle_uri (player, suburi);
     g_free (suburi);
 
   } else if (steps && change == STATE_CHANGE_WARNING) {
@@ -1026,7 +1026,7 @@ test_play_external_suburi_cb (GstPlayer * player,
     suburi = gst_filename_to_uri (TEST_PATH "/test_sub.srt", NULL);
     fail_unless (suburi != NULL);
 
-    fail_unless (gst_player_set_subtitle_uri (player, suburi) != FALSE);
+    gst_player_set_subtitle_uri (player, suburi);
     g_free (suburi);
     new_state->test_data = GINT_TO_POINTER (steps + 1);