Module: sems
Branch: rco/offer_answer
Commit: d370be425fcf039cb0a5c606b75cb3c080c0be13
URL:    
http://git.sip-router.org/cgi-bin/gitweb.cgi/sems/?a=commit;h=d370be425fcf039cb0a5c606b75cb3c080c0be13

Author: Raphael Coeffic <[email protected]>
Committer: Raphael Coeffic <[email protected]>
Date:   Thu Jul  8 16:07:06 2010 +0200

assert there is a valid codec

---

 core/AmAudio.cpp |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/core/AmAudio.cpp b/core/AmAudio.cpp
index f7e92e1..c0a47f0 100644
--- a/core/AmAudio.cpp
+++ b/core/AmAudio.cpp
@@ -391,6 +391,7 @@ int AmAudio::encode(unsigned int size)
   amci_codec_t* codec = fmt->getCodec();
   long h_codec = fmt->getHCodec();
 
+  assert(codec);
   if(codec->encode){
     s = (*codec->encode)(samples.back_buffer(),samples,(unsigned int) size,
                         fmt->channels,fmt->rate,h_codec);

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

Reply via email to