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:
Thiago Santos 2014-12-29 10:44:53 -03:00
parent a862ba4b45
commit afc392c47b

View file

@ -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;
}