aboutsummaryrefslogtreecommitdiffstats
path: root/src/output/ao_plugin.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/output/ao_plugin.c')
-rw-r--r--src/output/ao_plugin.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/output/ao_plugin.c b/src/output/ao_plugin.c
index 655d267fd..b0662d7a1 100644
--- a/src/output/ao_plugin.c
+++ b/src/output/ao_plugin.c
@@ -27,7 +27,7 @@
static int driverInitCount;
typedef struct _AoData {
- int writeSize;
+ size_t writeSize;
int driverId;
ao_option *options;
ao_device *device;
@@ -218,8 +218,8 @@ audioOutputAo_play(void *data, const char *playChunk, size_t size)
return false;
while (size > 0) {
- chunk_size = (size_t)ad->writeSize > size
- ? size : (size_t)ad->writeSize;
+ chunk_size = ad->writeSize > size
+ ? size : ad->writeSize;
if (ao_play_deconst(ad->device, playChunk, chunk_size) == 0) {
audioOutputAo_error("Closing libao device due to play error");