mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 10:41:04 +00:00
dashdemux: prevent crash by checking if the segment node is present
Do not try to access range data if there is no segment node
This commit is contained in:
parent
d0befd39f0
commit
d9c324c6c7
1 changed files with 1 additions and 1 deletions
|
@ -3319,7 +3319,7 @@ gst_mpd_client_get_next_fragment (GstMpdClient * client,
|
|||
*discontinuity = segment_idx != currentChunk->number;
|
||||
*range_start = 0;
|
||||
*range_end = -1;
|
||||
if (currentChunk->SegmentURL->mediaRange) {
|
||||
if (currentChunk->SegmentURL && currentChunk->SegmentURL->mediaRange) {
|
||||
*range_start = currentChunk->SegmentURL->mediaRange->first_byte_pos;
|
||||
*range_end = currentChunk->SegmentURL->mediaRange->last_byte_pos;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue