From b03e68ea8cd95bbf4fa9164827ce4661932bcec8 Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Wed, 30 Nov 2022 07:54:07 +0100 Subject: [PATCH] hlsdemux2: support old compilers Part-of: --- .../ext/adaptivedemux2/hls/gsthlsdemux-stream.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/subprojects/gst-plugins-good/ext/adaptivedemux2/hls/gsthlsdemux-stream.c b/subprojects/gst-plugins-good/ext/adaptivedemux2/hls/gsthlsdemux-stream.c index 76748d55c5..9280e6eeb1 100644 --- a/subprojects/gst-plugins-good/ext/adaptivedemux2/hls/gsthlsdemux-stream.c +++ b/subprojects/gst-plugins-good/ext/adaptivedemux2/hls/gsthlsdemux-stream.c @@ -1285,10 +1285,11 @@ download_media_playlist (GstHLSDemuxStream * stream, gchar * orig_uri, GstAdaptiveDemux2Stream *base_stream = GST_ADAPTIVE_DEMUX2_STREAM (stream); GstAdaptiveDemux *demux = base_stream->demux; const gchar *main_uri = gst_adaptive_demux_get_manifest_ref_uri (demux); + struct PlaylistDownloadParams dl_params; retry: - struct PlaylistDownloadParams dl_params = { 0, }; + memset (&dl_params, 0, sizeof (struct PlaylistDownloadParams)); /* If there's no previous playlist, or the URI changed this * is not a refresh/update but a switch to a new playlist */