diff options
author | Android (Google) Code Review <android-gerrit@google.com> | 2009-05-20 08:54:30 -0700 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2009-05-20 08:54:30 -0700 |
commit | 5d19f7a9f77cd013de6aa1b887ce32c0a82dd988 (patch) | |
tree | 80498ecbbb9727e1451938df83a9dd6e35e8d297 | |
parent | 0c20e0a0ed8c4ae0441ecb5378f06ecc15628b78 (diff) | |
parent | 32c89b41d072a26efe06706871eecad7b1906c1a (diff) | |
download | external_qemu-5d19f7a9f77cd013de6aa1b887ce32c0a82dd988.zip external_qemu-5d19f7a9f77cd013de6aa1b887ce32c0a82dd988.tar.gz external_qemu-5d19f7a9f77cd013de6aa1b887ce32c0a82dd988.tar.bz2 |
am 32c89b41: Merge change 2069 into donut
Merge commit '32c89b41d072a26efe06706871eecad7b1906c1a'
* commit '32c89b41d072a26efe06706871eecad7b1906c1a':
Fix one minor crashing bug when -debug-audio is used with the OSS audio backend.
-rw-r--r-- | audio/esdaudio.c | 2 | ||||
-rw-r--r-- | sockets.c | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/audio/esdaudio.c b/audio/esdaudio.c index 05c030f..2226022 100644 --- a/audio/esdaudio.c +++ b/audio/esdaudio.c @@ -226,7 +226,7 @@ static int qesd_run_out (HWVoiceOut *hw) esd->live = live - decr; hw->rpos = esd->rpos; if (esd->live > 0) { - O("%s: signaling %d samples\n", esd->live); + O("%s: signaling %d samples\n", __FUNCTION__, esd->live); audio_pt_unlock_and_signal (&esd->pt, AUDIO_FUNC); } else { @@ -50,7 +50,10 @@ do { _ret = (_cmd); } while ( _ret < 0 && WSAGetLastError() == WSAEINTR ) #else # define QSOCKET_CALL(_ret,_cmd) \ - do { _ret = (_cmd); } while ( _ret < 0 && errno == EINTR ) + do { \ + errno = 0; \ + do { _ret = (_cmd); } while ( _ret < 0 && errno == EINTR ); \ + } while (0); #endif #ifdef _WIN32 |