hlsdemux2: Ensure processed webvtt ends with empty new line
authorEdward Hervey <edward@centricular.com>
Tue, 4 Jul 2023 08:57:01 +0000 (10:57 +0200)
committerTim-Philipp Müller <tim@centricular.com>
Wed, 5 Jul 2023 08:17:58 +0000 (09:17 +0100)
commit084efebb2a12bb64cac752106f495299a7fdfa2c
tree6f1850e74709ac85a0d07ed9c5ed3c8829960d5f
parenta75140ba871aae590dc37c08a8e5357ef5e746ea
hlsdemux2: Ensure processed webvtt ends with empty new line

Parsers downstream will use empty new lines to detect where an entry
ends. Failure to have a newline would cause the entry to be either
discarded or (wrongly) concatenated with the next entry

Fixes https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/2752

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4970>
subprojects/gst-plugins-good/ext/adaptivedemux2/hls/gsthlsdemux-util.c