debugutils: Fix compiler warning
authorSebastian Dröge <sebastian@centricular.com>
Fri, 12 Dec 2014 12:57:39 +0000 (13:57 +0100)
committerSebastian Dröge <sebastian@centricular.com>
Fri, 12 Dec 2014 12:57:39 +0000 (13:57 +0100)
gstdebugutils.c: In function 'gst_debug_bin_to_dot_data':
gstdebugutils.c:683:530: error: 'return' with no value, in function returning non-void [-Werror]
   g_return_if_fail (GST_IS_BIN (bin));

gst/gstdebugutils.c

index 4aa387d..291bc44 100644 (file)
@@ -680,7 +680,7 @@ gst_debug_bin_to_dot_data (GstBin * bin, GstDebugGraphDetails details)
 {
   GString *str;
 
-  g_return_if_fail (GST_IS_BIN (bin));
+  g_return_val_if_fail (GST_IS_BIN (bin), NULL);
 
   str = g_string_new (NULL);