mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 19:51:11 +00:00
rsvgoverlay: cosmetic change
Rename PROP_FILENAME to PROP_LOCATION to match the name of the property. Add some debug logging.
This commit is contained in:
parent
3f07ebcc37
commit
e6c9b60851
1 changed files with 5 additions and 3 deletions
|
@ -72,7 +72,7 @@ enum
|
|||
{
|
||||
PROP_0,
|
||||
PROP_DATA,
|
||||
PROP_FILENAME,
|
||||
PROP_LOCATION,
|
||||
PROP_FIT_TO_FRAME,
|
||||
PROP_X,
|
||||
PROP_Y,
|
||||
|
@ -164,6 +164,8 @@ gst_rsvg_overlay_set_svg_data (GstRsvgOverlay * overlay, const gchar * data,
|
|||
overlay->svg_width = svg_dimension.width;
|
||||
overlay->svg_height = svg_dimension.height;
|
||||
gst_base_transform_set_passthrough (btrans, FALSE);
|
||||
GST_INFO_OBJECT (overlay, "updated SVG, %d x %d", overlay->svg_width,
|
||||
overlay->svg_height);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -184,7 +186,7 @@ gst_rsvg_overlay_set_property (GObject * object, guint prop_id,
|
|||
FALSE);
|
||||
break;
|
||||
}
|
||||
case PROP_FILENAME:
|
||||
case PROP_LOCATION:
|
||||
{
|
||||
gst_rsvg_overlay_set_svg_data (overlay, g_value_get_string (value), TRUE);
|
||||
break;
|
||||
|
@ -474,7 +476,7 @@ gst_rsvg_overlay_class_init (GstRsvgOverlayClass * klass)
|
|||
g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_DATA,
|
||||
g_param_spec_string ("data", "data", "SVG data.", "",
|
||||
G_PARAM_WRITABLE | G_PARAM_STATIC_STRINGS));
|
||||
g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_FILENAME,
|
||||
g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_LOCATION,
|
||||
g_param_spec_string ("location", "location", "SVG file location.", "",
|
||||
G_PARAM_WRITABLE | G_PARAM_STATIC_STRINGS));
|
||||
g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_FIT_TO_FRAME,
|
||||
|
|
Loading…
Reference in a new issue