[gst-devel] Small patch
Chris Emerson
chris at tartarus.org
Wed Mar 7 19:35:17 CET 2001
Here's a patch which fixes a couple of warnings in gstpad.c, where
g_return_if_fail was used where g_return_val_if_fail should be.
Cheers,
Chris
-------------- next part --------------
? gst/xml/save
Index: gst/gstpad.c
===================================================================
RCS file: /cvsroot/gstreamer/gstreamer/gst/gstpad.c,v
retrieving revision 1.70
diff -u -r1.70 gstpad.c
--- gst/gstpad.c 2001/02/22 23:18:51 1.70
+++ gst/gstpad.c 2001/03/07 18:32:33
@@ -948,7 +948,7 @@
{
GstRealPad *peer = GST_RPAD_PEER(pad);
- g_return_if_fail (peer != NULL);
+ g_return_val_if_fail (peer != NULL, NULL);
GST_DEBUG_ENTER("(%s:%s)",GST_DEBUG_PAD_NAME(pad));
@@ -983,7 +983,7 @@
{
GstRealPad *peer = GST_RPAD_PEER(pad);
- g_return_if_fail (peer != NULL);
+ g_return_val_if_fail (peer != NULL, NULL);
GST_DEBUG_ENTER("(%s:%s,%d,%lld,%lld)",GST_DEBUG_PAD_NAME(pad),type,offset,len);
More information about the gstreamer-devel
mailing list