projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
54ce23e
)
hlsdemux: g_return_if_fail in function with return type
author
Luis de Bethencourt
<luis.bg@samsung.com>
Thu, 8 Jan 2015 15:54:18 +0000
(15:54 +0000)
committer
Luis de Bethencourt
<luis.bg@samsung.com>
Thu, 8 Jan 2015 15:54:18 +0000
(15:54 +0000)
Need to use g_return_val_if_fail() when the function returns a type, in this
case a gboolean
ext/hls/m3u8.c
patch
|
blob
|
history
diff --git
a/ext/hls/m3u8.c
b/ext/hls/m3u8.c
index 01a370a7373d03771eba9d5cb3af41ddd7fb0f47..4953efdc9a9a61c87f6d41e48182d75197a23b45 100755
(executable)
--- 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,