[farsight2/master] Use enum for rtp/rtcp components for forced local candidates, don't overwrite rtp candidate with rtcp one
Olivier Crête
olivier.crete at collabora.co.uk
Tue Dec 23 15:19:37 PST 2008
---
transmitters/rawudp/fs-rawudp-stream-transmitter.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/transmitters/rawudp/fs-rawudp-stream-transmitter.c b/transmitters/rawudp/fs-rawudp-stream-transmitter.c
index ca6bfb3..6da1fff 100644
--- a/transmitters/rawudp/fs-rawudp-stream-transmitter.c
+++ b/transmitters/rawudp/fs-rawudp-stream-transmitter.c
@@ -483,7 +483,7 @@ fs_rawudp_stream_transmitter_build (FsRawUdpStreamTransmitter *self,
}
switch (candidate->component_id) {
- case 1: /* RTP */
+ case FS_COMPONENT_RTP: /* RTP */
if (ip) {
g_set_error (error, FS_ERROR,
FS_ERROR_INVALID_ARGUMENTS,
@@ -493,7 +493,7 @@ fs_rawudp_stream_transmitter_build (FsRawUdpStreamTransmitter *self,
ip = candidate->ip;
port = candidate->port;
break;
- case 2: /* RTCP */
+ case FS_COMPONENT_RTCP: /* RTCP */
if (rtcp_ip) {
g_set_error (error, FS_ERROR,
FS_ERROR_INVALID_ARGUMENTS,
@@ -535,7 +535,7 @@ fs_rawudp_stream_transmitter_build (FsRawUdpStreamTransmitter *self,
}
if (rtcp_ip) {
- self->priv->local_forced_rtp_candidate =
+ self->priv->local_forced_rtcp_candidate =
fs_rawudp_stream_transmitter_build_forced_candidate (self, rtcp_ip,
fs_rawudp_transmitter_udpport_get_port (self->priv->rtcp_udpport),
FS_COMPONENT_RTCP);
--
1.5.6.5
More information about the farsight-commits
mailing list