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

Author: Stefan Sayer <[email protected]>
Committer: Stefan Sayer <[email protected]>
Date:   Tue Dec 17 16:04:03 2013 +0100

core: only use setter for AmRtpStream::receiving

---

 core/AmRtpStream.h |    6 +++---
 core/AmSession.h   |    2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/core/AmRtpStream.h b/core/AmRtpStream.h
index b8df93f..e9e231e 100644
--- a/core/AmRtpStream.h
+++ b/core/AmRtpStream.h
@@ -252,6 +252,9 @@ protected:
   RtpEventQueue   rtp_ev_qu;
   AmMutex         receive_mut;
 
+  /** should we receive packets? if not -> drop */
+  bool receiving;
+
   /** if relay_stream is initialized, received RTP is relayed there */
   bool            relay_enabled;
   /** if true, packets are note parsed or checked */
@@ -324,9 +327,6 @@ public:
   /** Mute */
   bool mute;
 
-  /** should we receive packets? if not -> drop */
-  bool receiving;
-
   /** should we receive RFC-2833-style DTMF even when receiving is disabled? */
   bool force_receive_dtmf;
 
diff --git a/core/AmSession.h b/core/AmSession.h
index 7e5ba51..1e9f7be 100644
--- a/core/AmSession.h
+++ b/core/AmSession.h
@@ -301,7 +301,7 @@ public:
   void setMute(bool mute) { RTPStream()->mute = mute; }
 
   /** setter for rtp_str->receiving */
-  void setReceiving(bool receive) { RTPStream()->receiving = receive; }
+  void setReceiving(bool receive) { RTPStream()->setReceiving(receive); }
 
   /** setter for rtp_str->force_receive_dtmf*/
   void setForceDtmfReceiving(bool receive) { RTPStream()->force_receive_dtmf = 
receive; }

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

Reply via email to