From 358be3dda95ceb1b0cd8d17abfcacb02878ed279 Mon Sep 17 00:00:00 2001 From: gb Date: Wed, 24 Mar 2010 13:20:34 +0000 Subject: [PATCH] Fix return value on error. --- gst-libs/gst/vaapi/gstvaapiobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst-libs/gst/vaapi/gstvaapiobject.c b/gst-libs/gst/vaapi/gstvaapiobject.c index 3e844c723c..8d13c677c1 100644 --- a/gst-libs/gst/vaapi/gstvaapiobject.c +++ b/gst-libs/gst/vaapi/gstvaapiobject.c @@ -220,7 +220,7 @@ gst_vaapi_object_get_display(GstVaapiObject *object) GstVaapiID gst_vaapi_object_get_id(GstVaapiObject *object) { - g_return_val_if_fail(GST_VAAPI_IS_OBJECT(object), NULL); + g_return_val_if_fail(GST_VAAPI_IS_OBJECT(object), VA_INVALID_ID); return object->priv->id; }