diff options
author | Paul Adenot <[email protected]> | 2023-04-18 17:25:32 +0200 |
---|---|---|
committer | Paul Adenot <[email protected]> | 2023-04-19 13:37:43 +0200 |
commit | 964a31b0fcfaff3a5137068cdafe01c6dfce2689 (patch) | |
tree | 1bb7cdcd85af556f42aa5c16681af0180882b6e9 | |
parent | 2071354a69aca7ed6df3b4222e305746c2113f60 (diff) | |
download | cubeb-964a31b0fcfaff3a5137068cdafe01c6dfce2689.tar.gz cubeb-964a31b0fcfaff3a5137068cdafe01c6dfce2689.zip |
Rename shutdown to shutdown_with_error got better convey the meaning
-rw-r--r-- | src/cubeb_aaudio.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cubeb_aaudio.cpp b/src/cubeb_aaudio.cpp index ce82ac9..b1ff3a4 100644 --- a/src/cubeb_aaudio.cpp +++ b/src/cubeb_aaudio.cpp @@ -181,7 +181,7 @@ struct cubeb { // Only allowed from state thread, while mutex on stm is locked static void -shutdown(cubeb_stream * stm) +shutdown_with_error(cubeb_stream * stm) { if (stm->istream) { WRAP(AAudioStream_requestStop)(stm->istream); @@ -247,7 +247,7 @@ update_state(cubeb_stream * stm) } if (old_state == stream_state::ERROR) { - shutdown(stm); + shutdown_with_error(stm); return; } @@ -292,7 +292,7 @@ update_state(cubeb_stream * stm) istate == AAUDIO_STREAM_STATE_DISCONNECTED) { LOG("Unexpected android input stream state %s", WRAP(AAudio_convertStreamStateToText)(istate)); - shutdown(stm); + shutdown_with_error(stm); return; } @@ -304,7 +304,7 @@ update_state(cubeb_stream * stm) ostate == AAUDIO_STREAM_STATE_DISCONNECTED) { LOG("Unexpected android output stream state %s", WRAP(AAudio_convertStreamStateToText)(istate)); - shutdown(stm); + shutdown_with_error(stm); return; } |