From 5d9df5d5d09b3d50b18540099c2b56ea9e4cecf4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Wed, 30 Mar 2016 10:34:07 +0300 Subject: [PATCH] ahcsrc: There's no point in read-only CONSTRUCT properties And creating one is causing assertions. Also get rid of the other CONSTRUCT property as it's a) unneeded for default initialization and b) you're not supposed to use constructor properties when creating element instances and the GStreamer API doesn't provide direct ways for doing so. https://bugzilla.gnome.org/show_bug.cgi?id=764339 --- sys/androidmedia/gstahcsrc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/androidmedia/gstahcsrc.c b/sys/androidmedia/gstahcsrc.c index 08ac4cd96c..856f8f3fc6 100644 --- a/sys/androidmedia/gstahcsrc.c +++ b/sys/androidmedia/gstahcsrc.c @@ -297,7 +297,7 @@ gst_ahc_src_class_init (GstAHCSrcClass * klass) */ properties[PROP_DEVICE] = g_param_spec_string ("device", "Device", "Device ID", DEFAULT_DEVICE, - G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS); + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); g_object_class_install_property (gobject_class, PROP_DEVICE, properties[PROP_DEVICE]); @@ -308,7 +308,7 @@ gst_ahc_src_class_init (GstAHCSrcClass * klass) */ properties[PROP_DEVICE_NAME] = g_param_spec_string ("device-name", "Device name", "Device name", NULL, - G_PARAM_READABLE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS); + G_PARAM_READABLE | G_PARAM_STATIC_STRINGS); g_object_class_install_property (gobject_class, PROP_DEVICE_NAME, properties[PROP_DEVICE_NAME]);