webrtc: mark remote/local-description as readonly
authorMatthew Waters <matthew@centricular.com>
Tue, 4 Dec 2018 09:30:49 +0000 (20:30 +1100)
committerMatthew Waters <matthew@centricular.com>
Thu, 30 May 2019 11:32:06 +0000 (21:32 +1000)
ext/webrtc/gstwebrtcbin.c

index 021d9eb847e4d6b3cdf6592db14eb25eac507606..301219ef378da3039bb1c2c921108e2d8ddf87b2 100644 (file)
@@ -4995,9 +4995,10 @@ gst_webrtc_bin_class_init (GstWebRTCBinClass * klass)
   g_object_class_install_property (gobject_class,
       PROP_LOCAL_DESCRIPTION,
       g_param_spec_boxed ("local-description", "Local Description",
-          "The local SDP description to use for this connection",
+          "The local SDP description in use for this connection. "
+          "Favours a pending description over the current description",
           GST_TYPE_WEBRTC_SESSION_DESCRIPTION,
-          G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
+          G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
 
   g_object_class_install_property (gobject_class,
       PROP_CURRENT_LOCAL_DESCRIPTION,
@@ -5018,13 +5019,13 @@ gst_webrtc_bin_class_init (GstWebRTCBinClass * klass)
           GST_TYPE_WEBRTC_SESSION_DESCRIPTION,
           G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
 
-
   g_object_class_install_property (gobject_class,
       PROP_REMOTE_DESCRIPTION,
       g_param_spec_boxed ("remote-description", "Remote Description",
-          "The remote SDP description to use for this connection",
+          "The remote SDP description to use for this connection. "
+          "Favours a pending description over the current description",
           GST_TYPE_WEBRTC_SESSION_DESCRIPTION,
-          G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
+          G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
 
   g_object_class_install_property (gobject_class,
       PROP_CURRENT_REMOTE_DESCRIPTION,
@@ -5047,7 +5048,6 @@ gst_webrtc_bin_class_init (GstWebRTCBinClass * klass)
           GST_TYPE_WEBRTC_SESSION_DESCRIPTION,
           G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
 
-
   g_object_class_install_property (gobject_class,
       PROP_STUN_SERVER,
       g_param_spec_string ("stun-server", "STUN Server",