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

Author: Stefan Sayer <[email protected]>
Committer: Stefan Sayer <[email protected]>
Date:   Mon Apr 23 12:31:03 2012 +0200

b/f: check for AmRtpAudio::playout_buffer initialization

---

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

diff --git a/core/AmRtpAudio.cpp b/core/AmRtpAudio.cpp
index b4b3692..505ac47 100644
--- a/core/AmRtpAudio.cpp
+++ b/core/AmRtpAudio.cpp
@@ -155,7 +155,7 @@ int AmRtpAudio::receive(unsigned long long system_ts)
   unsigned int rtp_ts;
   int new_payload = -1;
 
-  if(!fmt.get()) {
+  if(!fmt.get() || (!playout_buffer.get())) {
     DBG("audio format not initialized\n");
     return RTP_ERROR;
   }

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

Reply via email to