From a78e516cbf8592fc0eb69310369edf72f4000dbd Mon Sep 17 00:00:00 2001 From: Vincent Penquerc'h Date: Tue, 8 Apr 2014 17:10:27 +0100 Subject: [PATCH] hls: restore NULL test mistakenly removed Thanks to tpm for point out I'm an idiot. --- ext/hls/m3u8.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/hls/m3u8.c b/ext/hls/m3u8.c index e1b3733739..e21590def0 100644 --- a/ext/hls/m3u8.c +++ b/ext/hls/m3u8.c @@ -808,7 +808,7 @@ gst_m3u8_client_get_duration (GstM3U8Client * client) GST_M3U8_CLIENT_LOCK (client); /* We can only get the duration for on-demand streams */ - if (!client->current || client->current->endlist) { + if (!client->current || !client->current->endlist) { GST_M3U8_CLIENT_UNLOCK (client); return GST_CLOCK_TIME_NONE; }