tests: check: Update hlsdemux2 tests for playlist changes
authorEdward Hervey <edward@centricular.com>
Wed, 8 Jun 2022 07:33:22 +0000 (09:33 +0200)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Tue, 28 Jun 2022 17:59:24 +0000 (17:59 +0000)
We no longer do auto-magic fallbacks when synchronizing a disconnected
playlist. It is handled at a higher level.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2679>

subprojects/gst-plugins-good/tests/check/elements/hlsdemux_m3u8.c

index f4eb8ea..954d479 100644 (file)
@@ -439,9 +439,11 @@ GST_START_TEST (test_live_playlist_rotated)
 
   pl = load_m3u8 (LIVE_ROTATED_PLAYLIST);
   file2 = gst_hls_media_playlist_sync_to_segment (pl, file);
-  fail_unless (file2 != NULL);
+  /* We can't sync the previous media plyalist to the new one, they are
+   * disconnected. A new synchronization point will be established later.
+   */
+  fail_unless (file2 == NULL);
   gst_m3u8_media_segment_unref (file);
-  gst_m3u8_media_segment_unref (file2);
 
   /* FIXME: Sequence should last - 3. Should it? */
   /* Check first media segment */