ortp_recv: Always set default jitter compensation, use zero as default.
authorAndre Noll <maan@systemlinux.org>
Sun, 12 Aug 2007 13:25:50 +0000 (15:25 +0200)
committerAndre Noll <maan@systemlinux.org>
Sun, 12 Aug 2007 13:25:50 +0000 (15:25 +0200)
This makes the default configuration work again with
ortp-0.13.1.

ortp_recv.c
ortp_recv.ggo

index cb0260d..fca470e 100644 (file)
@@ -269,11 +269,9 @@ static int ortp_recv_open(struct receiver_node *rn)
        rtp_session_set_local_addr(pord->session, c->host_arg, c->port_arg);
        rtp_session_set_remote_addr(pord->session, c->host_arg, c->port_arg);
        rtp_session_set_payload_type(pord->session, PAYLOAD_AUDIO_CONTINUOUS);
-       if (c->jitter_compensation_arg) {
-               rtp_session_enable_adaptive_jitter_compensation(pord->session, TRUE);
-               rtp_session_set_jitter_compensation(pord->session,
+       rtp_session_enable_adaptive_jitter_compensation(pord->session, TRUE);
+       rtp_session_set_jitter_compensation(pord->session,
                        c->jitter_compensation_arg);
-       }
        return 1;
 }
 
index 4ed5a03..192f21c 100644 (file)
@@ -1,4 +1,4 @@
 section "ortp options"
 option "host" i "ip or host to receive rtp packets from" string default="224.0.1.38" optional
 option "port" p "udp port." int typestr="portnumber" default="1500" optional
-option "jitter_compensation" j "non-zero values enable ortp's adaptive jitter compensation" int typestr="milliseconds" default="400" optional
+option "jitter_compensation" j "set ortp's adaptive jitter compensation" int typestr="milliseconds" default="0" optional