From afc392c47b4e818dc6aba17f79b055a7026686ce Mon Sep 17 00:00:00 2001 From: Thiago Santos Date: Mon, 29 Dec 2014 10:44:53 -0300 Subject: [PATCH] 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 --- ext/dash/gstmpdparser.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ext/dash/gstmpdparser.c b/ext/dash/gstmpdparser.c index 9d982f7867..967569cf7a 100644 --- a/ext/dash/gstmpdparser.c +++ b/ext/dash/gstmpdparser.c @@ -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; }