mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 10:41:04 +00:00
[489/906] glimagesink: pixel-aspect-ratio property now returns "1/1" by default
Previously it was not set Fix bug #671734 (compatibility with Totem)
This commit is contained in:
parent
b88351ad0c
commit
20ac2cc4aa
1 changed files with 7 additions and 2 deletions
|
@ -362,8 +362,13 @@ gst_glimage_sink_get_property (GObject * object, guint prop_id,
|
|||
g_value_set_boolean (value, glimage_sink->keep_aspect_ratio);
|
||||
break;
|
||||
case PROP_PIXEL_ASPECT_RATIO:
|
||||
if (glimage_sink->par)
|
||||
g_value_transform (glimage_sink->par, value);
|
||||
if (!glimage_sink->par) {
|
||||
glimage_sink->par = g_new0 (GValue, 1);
|
||||
g_value_init (glimage_sink->par, GST_TYPE_FRACTION);
|
||||
gst_value_set_fraction (glimage_sink->par, 1, 1);
|
||||
}
|
||||
if (!g_value_transform (glimage_sink->par, value))
|
||||
g_warning ("Could not transform string to aspect ratio");
|
||||
break;
|
||||
default:
|
||||
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
|
||||
|
|
Loading…
Reference in a new issue