hls: Avoid potential NULL pointer dereference.

Fixes CID 1364753
This commit is contained in:
Jan Schmidt 2016-08-04 22:28:13 +10:00
parent d78686f7d4
commit f2dc791479

View file

@ -596,8 +596,10 @@ gst_hls_demux_process_manifest (GstAdaptiveDemux * demux, GstBuffer * buf)
NULL, demux->connection_speed);
}
GST_INFO_OBJECT (hlsdemux, "selected %s", variant->name);
gst_hls_demux_set_current_variant (hlsdemux, variant); // FIXME: inline?
if (variant) {
GST_INFO_OBJECT (hlsdemux, "selected %s", variant->name);
gst_hls_demux_set_current_variant (hlsdemux, variant); // FIXME: inline?
}
/* get the selected media playlist (unless the inital list was one already) */
if (!hlsdemux->master->is_simple) {