dashdemux: Fix potential NULL pointer dereference
CID 1399700
This commit is contained in:
parent
95b85eae5a
commit
ef70cd48c6
@ -1176,8 +1176,13 @@ gst_dash_demux_stream_update_fragment_info (GstAdaptiveDemuxStream * stream)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
g_free (dashstream->last_representation_id);
|
g_free (dashstream->last_representation_id);
|
||||||
dashstream->last_representation_id =
|
if (dashstream->active_stream
|
||||||
g_strdup (dashstream->active_stream->cur_representation->id);
|
&& dashstream->active_stream->cur_representation) {
|
||||||
|
dashstream->last_representation_id =
|
||||||
|
g_strdup (dashstream->active_stream->cur_representation->id);
|
||||||
|
} else {
|
||||||
|
dashstream->last_representation_id = NULL;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (GST_ADAPTIVE_DEMUX_STREAM_NEED_HEADER (stream)) {
|
if (GST_ADAPTIVE_DEMUX_STREAM_NEED_HEADER (stream)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user