Fix return value on error.

This commit is contained in:
gb 2010-03-24 13:20:34 +00:00
parent a91206bbc1
commit 358be3dda9

View file

@ -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;
}