diff options
author | Tim-Philipp Müller <tim@centricular.com> | 2016-05-22 20:14:18 +0100 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2016-05-23 19:17:08 +0100 |
commit | 3d979d4e879f1c18ffa64ecfd9887669eba97220 (patch) | |
tree | 13b8c0969d7412bcfde995ab7f93c9cffb573e72 | |
parent | 6fd04b07fca81acf598b1695033bea4e72c32560 (diff) |
videocrop mark crop properties as mutable in playing state
-rw-r--r-- | gst/videocrop/gstvideocrop.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/gst/videocrop/gstvideocrop.c b/gst/videocrop/gstvideocrop.c index 511161e91..d9a8f1a27 100644 --- a/gst/videocrop/gstvideocrop.c +++ b/gst/videocrop/gstvideocrop.c @@ -180,19 +180,23 @@ gst_video_crop_class_init (GstVideoCropClass * klass) g_object_class_install_property (gobject_class, PROP_LEFT, g_param_spec_int ("left", "Left", "Pixels to crop at left (-1 to auto-crop)", -1, G_MAXINT, 0, - G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | + GST_PARAM_MUTABLE_PLAYING)); g_object_class_install_property (gobject_class, PROP_RIGHT, g_param_spec_int ("right", "Right", "Pixels to crop at right (-1 to auto-crop)", -1, G_MAXINT, 0, - G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | + GST_PARAM_MUTABLE_PLAYING)); g_object_class_install_property (gobject_class, PROP_TOP, - g_param_spec_int ("top", "Top", - "Pixels to crop at top (-1 to auto-crop)", -1, G_MAXINT, 0, - G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + g_param_spec_int ("top", "Top", "Pixels to crop at top (-1 to auto-crop)", + -1, G_MAXINT, 0, + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | + GST_PARAM_MUTABLE_PLAYING)); g_object_class_install_property (gobject_class, PROP_BOTTOM, g_param_spec_int ("bottom", "Bottom", "Pixels to crop at bottom (-1 to auto-crop)", -1, G_MAXINT, 0, - G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | + GST_PARAM_MUTABLE_PLAYING)); gst_element_class_add_static_pad_template (element_class, &sink_template); gst_element_class_add_static_pad_template (element_class, &src_template); |