hlsdemux2: Dump init uri details for segments.

When dumping an m3u8 playlist to debug, include information about any
initialisation data.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3883>
This commit is contained in:
Jan Schmidt 2022-08-07 14:27:47 +10:00 committed by GStreamer Marge Bot
parent 2c82fdf276
commit e1a6ec22ee

View file

@ -478,6 +478,12 @@ gst_hls_media_playlist_dump (GstHLSMediaPlaylist * self)
GST_DEBUG (" date/time : %s", datestring); GST_DEBUG (" date/time : %s", datestring);
g_free (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, GST_DEBUG (" uri : %s %" G_GUINT64_FORMAT " %" G_GINT64_FORMAT,
segment->uri, segment->offset, segment->size); segment->uri, segment->offset, segment->size);