mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-30 04:00:37 +00:00
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
1 changed files with 2 additions and 1 deletions
|
@ -3511,7 +3511,8 @@ gst_mpd_client_get_availability_start_time (GstMpdClient * client)
|
|||
return (GstDateTime *) NULL;
|
||||
|
||||
start_time = client->mpd_node->availabilityStartTime;
|
||||
gst_date_time_ref (start_time);
|
||||
if (start_time)
|
||||
gst_date_time_ref (start_time);
|
||||
return start_time;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue