Fix gst_vaapi_image_new_with_image().

This commit is contained in:
Gwenole Beauchesne 2011-09-08 14:40:08 +02:00
parent 6e9a816c48
commit 857a024c62

View file

@ -279,13 +279,16 @@ gst_vaapi_image_set_property(
break;
}
case PROP_FORMAT:
priv->format = g_value_get_uint(value);
if (priv->create_image)
priv->format = g_value_get_uint(value);
break;
case PROP_WIDTH:
priv->width = g_value_get_uint(value);
if (priv->create_image)
priv->width = g_value_get_uint(value);
break;
case PROP_HEIGHT:
priv->height = g_value_get_uint(value);
if (priv->create_image)
priv->height = g_value_get_uint(value);
break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID(object, prop_id, pspec);