From a3f2975309fb3988ecdf0ddb0abdbad9ad2ce22d Mon Sep 17 00:00:00 2001 From: gb Date: Mon, 15 Mar 2010 14:57:30 +0000 Subject: [PATCH] Fix preconditions. --- gst-libs/gst/vaapi/gstvaapiimage.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gst-libs/gst/vaapi/gstvaapiimage.c b/gst-libs/gst/vaapi/gstvaapiimage.c index d84b894..564858e 100644 --- a/gst-libs/gst/vaapi/gstvaapiimage.c +++ b/gst-libs/gst/vaapi/gstvaapiimage.c @@ -322,8 +322,8 @@ gst_vaapi_image_get_height(GstVaapiImage *image) void gst_vaapi_image_get_size(GstVaapiImage *image, guint *pwidth, guint *pheight) { - g_return_val_if_fail(GST_VAAPI_IS_IMAGE(image), 0); - g_return_val_if_fail(image->priv->is_constructed, FALSE); + g_return_if_fail(GST_VAAPI_IS_IMAGE(image)); + g_return_if_fail(image->priv->is_constructed); if (pwidth) *pwidth = image->priv->width; -- 2.7.4