aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorPaul Adenot <[email protected]>2023-04-24 14:14:53 +0200
committerPaul Adenot <[email protected]>2023-04-26 14:28:46 +0200
commit31fb25d7eb232ff6281c78cc0c215572ab71a6c5 (patch)
treeb187765db6513a5c95ae6258e05029f06dd71ac8
parent64422167605935bc6b3457d577340b0ab41f5121 (diff)
downloadcubeb-31fb25d7eb232ff6281c78cc0c215572ab71a6c5.tar.gz
cubeb-31fb25d7eb232ff6281c78cc0c215572ab71a6c5.zip
Handle a negative return value from the user callback
-rw-r--r--src/cubeb_winmm.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/cubeb_winmm.c b/src/cubeb_winmm.c
index dc1db9c..793ac71 100644
--- a/src/cubeb_winmm.c
+++ b/src/cubeb_winmm.c
@@ -197,8 +197,7 @@ winmm_refill_stream(cubeb_stream * stm)
EnterCriticalSection(&stm->lock);
if (got < 0) {
LeaveCriticalSection(&stm->lock);
- /* XXX handle this case */
- XASSERT(0);
+ stm->state_callback(stm, stm->user_ptr, CUBEB_STATE_ERROR);
return;
} else if (got < wanted) {
stm->draining = 1;