sip: media-pipeline: Remove lport-rtp and lport-rtcp property
We're not setting the desired ports from the outside anymore, but rather querying the ports that have been allocated by the operating system. Therefore the lport-rtp and lport-rtcp property have become superfluous and are being removed. We also adapt to changes outside of the pipeline code.
This commit is contained in:
@@ -95,9 +95,7 @@ enum {
|
||||
PROP_0,
|
||||
PROP_CODEC,
|
||||
PROP_REMOTE,
|
||||
PROP_LPORT_RTP,
|
||||
PROP_RPORT_RTP,
|
||||
PROP_LPORT_RTCP,
|
||||
PROP_RPORT_RTCP,
|
||||
PROP_DEBUG,
|
||||
PROP_STATE,
|
||||
@@ -128,10 +126,8 @@ struct _CallsSipMediaPipeline {
|
||||
char *remote;
|
||||
|
||||
gint rport_rtp;
|
||||
gint lport_rtp;
|
||||
|
||||
gint rport_rtcp;
|
||||
gint lport_rtcp;
|
||||
|
||||
/* Gstreamer Elements (sending) */
|
||||
GstElement *send_pipeline;
|
||||
@@ -740,14 +736,6 @@ calls_sip_media_pipeline_get_property (GObject *object,
|
||||
g_value_set_string (value, self->remote);
|
||||
break;
|
||||
|
||||
case PROP_LPORT_RTP:
|
||||
g_value_set_uint (value, self->lport_rtp);
|
||||
break;
|
||||
|
||||
case PROP_LPORT_RTCP:
|
||||
g_value_set_uint (value, self->lport_rtcp);
|
||||
break;
|
||||
|
||||
case PROP_RPORT_RTP:
|
||||
g_value_set_uint (value, self->rport_rtp);
|
||||
break;
|
||||
@@ -789,14 +777,6 @@ calls_sip_media_pipeline_set_property (GObject *object,
|
||||
self->remote = g_value_dup_string (value);
|
||||
break;
|
||||
|
||||
case PROP_LPORT_RTP:
|
||||
self->lport_rtp = g_value_get_uint (value);
|
||||
break;
|
||||
|
||||
case PROP_LPORT_RTCP:
|
||||
self->lport_rtcp = g_value_get_uint (value);
|
||||
break;
|
||||
|
||||
case PROP_RPORT_RTP:
|
||||
self->rport_rtp = g_value_get_uint (value);
|
||||
break;
|
||||
@@ -884,18 +864,6 @@ calls_sip_media_pipeline_class_init (CallsSipMediaPipelineClass *klass)
|
||||
NULL,
|
||||
G_PARAM_READWRITE);
|
||||
|
||||
props[PROP_LPORT_RTP] = g_param_spec_uint ("lport-rtp",
|
||||
"lport-rtp",
|
||||
"local rtp port",
|
||||
1025, 65535, 5002,
|
||||
G_PARAM_READWRITE);
|
||||
|
||||
props[PROP_LPORT_RTCP] = g_param_spec_uint ("lport-rtcp",
|
||||
"lport-rtcp",
|
||||
"local rtcp port",
|
||||
1025, 65535, 5003,
|
||||
G_PARAM_READWRITE);
|
||||
|
||||
props[PROP_RPORT_RTP] = g_param_spec_uint ("rport-rtp",
|
||||
"rport-rtp",
|
||||
"remote rtp port",
|
||||
|
||||
Reference in New Issue
Block a user