mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 02:31:03 +00:00
mirror: Needs remap when the mode changes.
This caused the user to think the mode wasn't taken into account.
This commit is contained in:
parent
bd5688d1ee
commit
8e2964ee59
1 changed files with 17 additions and 4 deletions
|
@ -97,10 +97,23 @@ gst_mirror_set_property (GObject * object, guint prop_id,
|
|||
|
||||
switch (prop_id) {
|
||||
case PROP_MODE:
|
||||
{
|
||||
gint mode;
|
||||
|
||||
GST_OBJECT_LOCK (filter);
|
||||
filter->mode = g_value_get_enum (value);
|
||||
mode = g_value_get_enum (value);
|
||||
|
||||
if (mode != filter->mode) {
|
||||
GstGeometricTransform *gt;
|
||||
|
||||
gt = GST_GEOMETRIC_TRANSFORM_CAST (object);
|
||||
filter->mode = mode;
|
||||
gst_geometric_transform_set_need_remap (gt);
|
||||
}
|
||||
|
||||
GST_OBJECT_UNLOCK (filter);
|
||||
break;
|
||||
}
|
||||
default:
|
||||
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue