From e1a6ec22eec67c92044fa5407336cf7945d2a796 Mon Sep 17 00:00:00 2001 From: Jan Schmidt Date: Sun, 7 Aug 2022 14:27:47 +1000 Subject: [PATCH] hlsdemux2: Dump init uri details for segments. When dumping an m3u8 playlist to debug, include information about any initialisation data. Part-of: --- subprojects/gst-plugins-good/ext/adaptivedemux2/hls/m3u8.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/subprojects/gst-plugins-good/ext/adaptivedemux2/hls/m3u8.c b/subprojects/gst-plugins-good/ext/adaptivedemux2/hls/m3u8.c index 614dd64552..1f711c1b3b 100644 --- a/subprojects/gst-plugins-good/ext/adaptivedemux2/hls/m3u8.c +++ b/subprojects/gst-plugins-good/ext/adaptivedemux2/hls/m3u8.c @@ -478,6 +478,12 @@ gst_hls_media_playlist_dump (GstHLSMediaPlaylist * self) GST_DEBUG (" date/time : %s", datestring); g_free (datestring); } + if (segment->init_file) { + GST_DEBUG (" init file : %s %" G_GUINT64_FORMAT " %" G_GINT64_FORMAT, + segment->init_file->uri, segment->init_file->offset, + segment->init_file->size); + } + GST_DEBUG (" uri : %s %" G_GUINT64_FORMAT " %" G_GINT64_FORMAT, segment->uri, segment->offset, segment->size);