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

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 d8a6e38..87fe9cf 100644
--- a/core/AmAdvancedAudio.cpp
+++ b/core/AmAdvancedAudio.cpp
@@ -281,8 +281,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