dashdemux: do not try to ref null pointer
Playlists might be missing the availability start time, so check for it before trying to ref the object
This commit is contained in:
parent
a862ba4b45
commit
afc392c47b
@ -3511,6 +3511,7 @@ gst_mpd_client_get_availability_start_time (GstMpdClient * client)
|
|||||||
return (GstDateTime *) NULL;
|
return (GstDateTime *) NULL;
|
||||||
|
|
||||||
start_time = client->mpd_node->availabilityStartTime;
|
start_time = client->mpd_node->availabilityStartTime;
|
||||||
|
if (start_time)
|
||||||
gst_date_time_ref (start_time);
|
gst_date_time_ref (start_time);
|
||||||
return start_time;
|
return start_time;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user