mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 09:10:36 +00:00
hls: Avoid potential NULL pointer dereference.
Fixes CID 1364753
This commit is contained in:
parent
d78686f7d4
commit
f2dc791479
1 changed files with 4 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue