Module: sems
Branch: master
Commit: 735cb6a58d8d6ee5b860b0a2451e31c198af2407
URL:    
http://git.sip-router.org/cgi-bin/gitweb.cgi/sems/?a=commit;h=735cb6a58d8d6ee5b860b0a2451e31c198af2407

Author: Raphael Coeffic <[email protected]>
Committer: Raphael Coeffic <[email protected]>
Date:   Wed Dec 14 16:31:35 2011 +0100

removed obsolete send_only attribute in AmRtpAudio (used nowhere)

---

 core/AmRtpAudio.cpp |    6 ++----
 core/AmRtpAudio.h   |    6 ------
 2 files changed, 2 insertions(+), 10 deletions(-)

diff --git a/core/AmRtpAudio.cpp b/core/AmRtpAudio.cpp
index 98d9ab9..ad84d55 100644
--- a/core/AmRtpAudio.cpp
+++ b/core/AmRtpAudio.cpp
@@ -34,7 +34,7 @@
 AmRtpAudio::AmRtpAudio(AmSession* _s, int _if)
   : AmRtpStream(_s,_if), AmAudio(0), 
     /*last_ts_i(false),*/ use_default_plc(true),
-    send_only(false), playout_buffer(new AmPlayoutBuffer(this)),
+    playout_buffer(new AmPlayoutBuffer(this)),
     last_check(0),last_check_i(false),send_int(false)
 {
 #ifdef USE_SPANDSP_PLC
@@ -93,9 +93,7 @@ int AmRtpAudio::receive(unsigned int wallclock_ts)
     if(size <= 0)
       break;
 
-    if (// don't process if we don't need to 
-       send_only || 
-       // ignore CN
+    if (// ignore CN
        COMFORT_NOISE_PAYLOAD_TYPE == payload  || 
        // ignore packet if payload not found
        setCurrentPayload(payload)
diff --git a/core/AmRtpAudio.h b/core/AmRtpAudio.h
index 118223a..eeba822 100644
--- a/core/AmRtpAudio.h
+++ b/core/AmRtpAudio.h
@@ -82,8 +82,6 @@ class AmRtpAudio: public AmRtpStream, public AmAudio, public 
AmPLCBuffer
   bool         last_check_i;
   bool         send_int;
 
-  bool         send_only;
-
   //
   // Default packet loss concealment functions
   //
@@ -104,10 +102,6 @@ public:
 
   int receive(unsigned int wallclock_ts);
 
-  void setSendOnly(bool so){
-    send_only = so;
-  }
-
   // AmAudio interface
   int read(unsigned int user_ts, unsigned int size);
   int write(unsigned int user_ts, unsigned int size);

_______________________________________________
Semsdev mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/semsdev

Reply via email to