Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixes method argument assertions to complain with signature

in GFreenectDevice.
  • Loading branch information...
commit 66ae4d326a81d0d841ed7cf9c9f7d05736a210e7 1 parent cf34bcb
Eduardo Lima authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 gfreenect/gfreenect-device.c
4 gfreenect/gfreenect-device.c
View
@@ -1295,7 +1295,7 @@ gboolean
gfreenect_device_stop_depth_stream (GFreenectDevice *self,
GError **error)
{
- g_return_if_fail (GFREENECT_IS_DEVICE (self));
+ g_return_val_if_fail (GFREENECT_IS_DEVICE (self), FALSE);
if (freenect_stop_depth (self->priv->dev) != 0)
{
@@ -1409,7 +1409,7 @@ gboolean
gfreenect_device_stop_video_stream (GFreenectDevice *self,
GError **error)
{
- g_return_if_fail (GFREENECT_IS_DEVICE (self));
+ g_return_val_if_fail (GFREENECT_IS_DEVICE (self), FALSE);
if (freenect_stop_video (self->priv->dev) != 0)
{
Please sign in to comment.
Something went wrong with that request. Please try again.