From 6ad73da390d37d8ac31ea6d91de5499158e817f1 Mon Sep 17 00:00:00 2001 From: gb Date: Thu, 25 Mar 2010 13:21:19 +0000 Subject: [PATCH] Fix return value on error (though it's the same in the end). --- gst-libs/gst/vaapi/gstvaapiimage.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gst-libs/gst/vaapi/gstvaapiimage.c b/gst-libs/gst/vaapi/gstvaapiimage.c index d993ef877d..c7585747c7 100644 --- a/gst-libs/gst/vaapi/gstvaapiimage.c +++ b/gst-libs/gst/vaapi/gstvaapiimage.c @@ -623,7 +623,7 @@ GstVaapiImageFormat gst_vaapi_image_get_format(GstVaapiImage *image) { g_return_val_if_fail(GST_VAAPI_IS_IMAGE(image), 0); - g_return_val_if_fail(image->priv->is_constructed, FALSE); + g_return_val_if_fail(image->priv->is_constructed, 0); return image->priv->format; } @@ -640,7 +640,7 @@ guint gst_vaapi_image_get_width(GstVaapiImage *image) { g_return_val_if_fail(GST_VAAPI_IS_IMAGE(image), 0); - g_return_val_if_fail(image->priv->is_constructed, FALSE); + g_return_val_if_fail(image->priv->is_constructed, 0); return image->priv->width; } @@ -657,7 +657,7 @@ guint gst_vaapi_image_get_height(GstVaapiImage *image) { g_return_val_if_fail(GST_VAAPI_IS_IMAGE(image), 0); - g_return_val_if_fail(image->priv->is_constructed, FALSE); + g_return_val_if_fail(image->priv->is_constructed, 0); return image->priv->height; }