diff options
author | Paul Adenot <[email protected]> | 2023-04-24 14:14:53 +0200 |
---|---|---|
committer | Paul Adenot <[email protected]> | 2023-04-26 14:28:46 +0200 |
commit | 31fb25d7eb232ff6281c78cc0c215572ab71a6c5 (patch) | |
tree | b187765db6513a5c95ae6258e05029f06dd71ac8 | |
parent | 64422167605935bc6b3457d577340b0ab41f5121 (diff) | |
download | cubeb-31fb25d7eb232ff6281c78cc0c215572ab71a6c5.tar.gz cubeb-31fb25d7eb232ff6281c78cc0c215572ab71a6c5.zip |
Handle a negative return value from the user callback
-rw-r--r-- | src/cubeb_winmm.c | 3 |
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; |