summaryrefslogtreecommitdiff
path: root/gst
diff options
context:
space:
mode:
authorSeungha Yang <seungha.yang@navercorp.com>2018-07-18 20:05:26 +0900
committerSebastian Dröge <sebastian@centricular.com>2018-07-18 14:41:31 +0300
commitd95d944a34122038b82b4f31251d0be237dfe164 (patch)
tree39cda56215633e6906565b80e193139bf6c6d55e /gst
parentd74ceb343aea60c6f3dea76bb90e7730682c6e8b (diff)
downloadgstreamer-plugins-bad-d95d944a34122038b82b4f31251d0be237dfe164.tar.gz
compositor: Update conversion info in property setter
... not in getter. Otherwise, video-converter will not be updated with new width/height https://bugzilla.gnome.org/show_bug.cgi?id=796828
Diffstat (limited to 'gst')
-rw-r--r--gst/compositor/compositor.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gst/compositor/compositor.c b/gst/compositor/compositor.c
index 341dc70fa..105fc4057 100644
--- a/gst/compositor/compositor.c
+++ b/gst/compositor/compositor.c
@@ -158,13 +158,9 @@ gst_compositor_pad_get_property (GObject * object, guint prop_id,
break;
case PROP_PAD_WIDTH:
g_value_set_int (value, pad->width);
- gst_video_aggregator_convert_pad_update_conversion_info
- (GST_VIDEO_AGGREGATOR_CONVERT_PAD (pad));
break;
case PROP_PAD_HEIGHT:
g_value_set_int (value, pad->height);
- gst_video_aggregator_convert_pad_update_conversion_info
- (GST_VIDEO_AGGREGATOR_CONVERT_PAD (pad));
break;
case PROP_PAD_ALPHA:
g_value_set_double (value, pad->alpha);
@@ -193,9 +189,13 @@ gst_compositor_pad_set_property (GObject * object, guint prop_id,
break;
case PROP_PAD_WIDTH:
pad->width = g_value_get_int (value);
+ gst_video_aggregator_convert_pad_update_conversion_info
+ (GST_VIDEO_AGGREGATOR_CONVERT_PAD (pad));
break;
case PROP_PAD_HEIGHT:
pad->height = g_value_get_int (value);
+ gst_video_aggregator_convert_pad_update_conversion_info
+ (GST_VIDEO_AGGREGATOR_CONVERT_PAD (pad));
break;
case PROP_PAD_ALPHA:
pad->alpha = g_value_get_double (value);