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

Author: Stefan Sayer <[email protected]>
Committer: Stefan Sayer <[email protected]>
Date:   Fri Jul 16 00:46:54 2010 +0200

core: fix AmAudioFrontlist if empty, no back_audio

thanks to Mark Sidell for the fix

---

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

diff --git a/core/AmAdvancedAudio.cpp b/core/AmAdvancedAudio.cpp
index 5fa6c5b..aa34cb1 100644
--- a/core/AmAdvancedAudio.cpp
+++ b/core/AmAdvancedAudio.cpp
@@ -270,8 +270,7 @@ int AmAudioFrontlist::get(unsigned int user_ts, unsigned 
char* buffer, unsigned
   int res = size; 
 
   ba_mut.lock();
-  if (isEmpty()) {
-    if (back_audio) 
+  if (isEmpty() && back_audio) {
       res = back_audio->get(user_ts, buffer, size);
   } else {
     res = AmPlaylist::get(user_ts, buffer, size);

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

Reply via email to