mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 10:41:04 +00:00
Fix return value on error (though it's the same in the end).
This commit is contained in:
parent
67de515e63
commit
6ad73da390
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue