From b53c1363f250c051b92d6af1123f21e4300fb117 Mon Sep 17 00:00:00 2001 From: Vivia Nikolaidou Date: Thu, 18 Jun 2020 23:52:01 +0300 Subject: interlace: Don't change field-pattern on PAUSED or PLAYING state It would otherwise change the caps the element produces and cause the element to misbehave Part-of: --- docs/plugins/gst_plugins_cache.json | 2 +- gst/interlace/gstinterlace.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/plugins/gst_plugins_cache.json b/docs/plugins/gst_plugins_cache.json index 41c48f782..6e78adf94 100644 --- a/docs/plugins/gst_plugins_cache.json +++ b/docs/plugins/gst_plugins_cache.json @@ -23768,7 +23768,7 @@ "construct-only": false, "controllable": false, "default": "2:3 (2)", - "mutable": "null", + "mutable": "ready", "readable": true, "type": "GstInterlacePattern", "writable": true diff --git a/gst/interlace/gstinterlace.c b/gst/interlace/gstinterlace.c index f84b2eb4a..efe4e0b88 100644 --- a/gst/interlace/gstinterlace.c +++ b/gst/interlace/gstinterlace.c @@ -240,7 +240,8 @@ gst_interlace_class_init (GstInterlaceClass * klass) g_param_spec_enum ("field-pattern", "Field pattern", "The output field pattern", GST_INTERLACE_PATTERN, GST_INTERLACE_PATTERN_2_3, - G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + GST_PARAM_MUTABLE_READY | G_PARAM_READWRITE | + G_PARAM_STATIC_STRINGS)); g_object_class_install_property (object_class, PROP_PATTERN_OFFSET, g_param_spec_uint ("pattern-offset", "Pattern offset", -- cgit v1.2.1