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
This commit is contained in:
Luis de Bethencourt 2015-01-08 15:54:18 +00:00
parent 54ce23e0cb
commit 9dcf650a17

View file

@ -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,