]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Add missing ENABLE_SRTP ifdef to allow building without SRTP
authorSpencer Thomason <spencer@whiteskycommunications.com>
Tue, 29 Dec 2015 15:50:38 +0000 (15:50 +0000)
committerSpencer Thomason <spencer@whiteskycommunications.com>
Tue, 29 Dec 2015 15:50:38 +0000 (15:50 +0000)
FS-8571 #resolve

src/switch_rtp.c

index 811ff437e82edc60eecd1038cc17e50ff0da9384..0c614a4f0e857f6b159a4573484da6d3b9a41204 100644 (file)
@@ -5252,6 +5252,7 @@ static switch_status_t read_rtp_packet(switch_rtp_t *rtp_session, switch_size_t
                        if (rtp_session->has_rtcp) {
                                *flags |= SFF_RTCP;
 
+#ifdef ENABLE_SRTP
                                if (rtp_session->flags[SWITCH_RTP_FLAG_SECURE_RECV]) {
                                        int sbytes = (int) *bytes;
                                        err_status_t stat = 0;
@@ -5266,7 +5267,7 @@ static switch_status_t read_rtp_packet(switch_rtp_t *rtp_session, switch_size_t
                                        
                                        *bytes = sbytes;
                                }
-
+#endif
                                return SWITCH_STATUS_SUCCESS;
                        }
                }