]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix --disable-srtp
authorBrian West <brian@freeswitch.org>
Wed, 26 Feb 2014 14:05:22 +0000 (08:05 -0600)
committerBrian West <brian@freeswitch.org>
Wed, 26 Feb 2014 14:05:22 +0000 (08:05 -0600)
src/switch_rtp.c

index 48ee1be44dff4cb8722d21e79caddec32be0e699..f5393d5d9a9282e38222b92c44e9ddd2e99bd375 100644 (file)
@@ -1509,8 +1509,9 @@ static void send_fir(switch_rtp_t *rtp_session)
                }
        }
 
-
+#ifdef ENABLE_SRTP
  end:
+#endif
 
        return;
 }
@@ -1594,9 +1595,9 @@ static void send_pli(switch_rtp_t *rtp_session)
                }
        }
 
-
+#ifdef ENABLE_SRTP
  end:
-
+#endif
        return;
 }
 
@@ -3884,7 +3885,9 @@ SWITCH_DECLARE(void) switch_rtp_destroy(switch_rtp_t **rtp_session)
 {
        void *pop;
        switch_socket_t *sock;
+#ifdef ENABLE_SRTP
        int x;
+#endif
 
        if (!rtp_session || !*rtp_session || !(*rtp_session)->ready) {
                return;