Commit 15f2cdd7 authored by Olivier Crête's avatar Olivier Crête 👻

srt: Remove msg-size property

Remove the now unused property
parent 42fa4cb2
Pipeline #47421 passed with stages
in 33 minutes and 51 seconds
......@@ -239,9 +239,6 @@ gst_srt_object_set_property_helper (GstSRTObject * srtobject,
case PROP_LATENCY:
gst_structure_set_value (srtobject->parameters, "latency", value);
break;
case PROP_MSG_SIZE:
gst_structure_set_value (srtobject->parameters, "msg-size", value);
break;
case PROP_LOCALADDRESS:
gst_structure_set_value (srtobject->parameters, "localaddress", value);
break;
......@@ -320,15 +317,6 @@ gst_srt_object_get_property_helper (GstSRTObject * srtobject,
g_value_set_int (value, v);
break;
}
case PROP_MSG_SIZE:{
gint v;
if (!gst_structure_get_int (srtobject->parameters, "msg-size", &v)) {
GST_WARNING_OBJECT (srtobject->element, "Failed to get 'msg-size'");
v = GST_SRT_DEFAULT_MSG_SIZE;
}
g_value_set_int (value, v);
break;
}
case PROP_STATS:
g_value_take_boxed (value, gst_srt_object_get_stats (srtobject));
break;
......@@ -441,17 +429,6 @@ gst_srt_object_install_properties_helper (GObjectClass * gobject_class)
G_MAXINT32, GST_SRT_DEFAULT_LATENCY,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
/**
* GstSRTSrc:msg-size:
*
* The message size of buffer.
*/
g_object_class_install_property (gobject_class, PROP_MSG_SIZE,
g_param_spec_int ("msg-size", "message size",
"Message size to use with SRT", 1,
G_MAXINT32, GST_SRT_DEFAULT_MSG_SIZE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
/**
* GstSRTSrc:stats:
*
......@@ -1118,7 +1095,6 @@ gst_srt_object_read (GstSRTObject * srtobject,
{
gssize len = 0;
gint poll_timeout;
gint msg_size;
GstSRTConnectionMode connection_mode = GST_SRT_CONNECTION_MODE_NONE;
gint poll_id;
......@@ -1147,10 +1123,6 @@ gst_srt_object_read (GstSRTObject * srtobject,
poll_timeout = GST_SRT_DEFAULT_POLL_TIMEOUT;
}
if (!gst_structure_get_int (srtobject->parameters, "msg-size", &msg_size)) {
msg_size = GST_SRT_DEFAULT_MSG_SIZE;
}
while (!g_cancellable_is_cancelled (cancellable)) {
SRTSOCKET rsock;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment