From: Luis de Bethencourt Date: Thu, 8 Jan 2015 15:54:18 +0000 (+0000) Subject: hlsdemux: g_return_if_fail in function with return type X-Git-Tag: 1.19.3~507^2~9617 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9dcf650a170257eb25efade22ec0c80a3790c446;p=platform%2Fupstream%2Fgstreamer.git hlsdemux: g_return_if_fail in function with return type Need to use g_return_val_if_fail() when the function returns a type, in this case a gboolean --- diff --git a/ext/hls/m3u8.c b/ext/hls/m3u8.c index 01a370a737..4953efdc9a 100755 --- a/ext/hls/m3u8.c +++ b/ext/hls/m3u8.c @@ -1050,8 +1050,8 @@ gst_m3u8_client_has_next_fragment (GstM3U8Client * client, gboolean forward) { gboolean ret; - g_return_if_fail (client != NULL); - g_return_if_fail (client->current != NULL); + g_return_val_if_fail (client != NULL, FALSE); + g_return_val_if_fail (client->current != NULL, FALSE); GST_M3U8_CLIENT_LOCK (client); GST_DEBUG ("Checking if has next fragment %" G_GINT64_FORMAT,