diff --git a/ext/hls/gsthlsdemux.c b/ext/hls/gsthlsdemux.c index e269f7abc8..4ad87e8763 100644 --- a/ext/hls/gsthlsdemux.c +++ b/ext/hls/gsthlsdemux.c @@ -396,6 +396,9 @@ gst_hls_demux_process_manifest (GstAdaptiveDemux * demux, GstBuffer * buf) } else { GList *tmp = gst_m3u8_client_get_playlist_for_bitrate (hlsdemux->client, demux->connection_speed); + GST_M3U8_CLIENT_LOCK (hlsdemux->client); + hlsdemux->client->main->current_variant = tmp; + GST_M3U8_CLIENT_UNLOCK (hlsdemux->client); child = GST_M3U8 (tmp->data); }