summaryrefslogtreecommitdiffstats
path: root/src/utils/paplay.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/paplay.c')
-rw-r--r--src/utils/paplay.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/paplay.c b/src/utils/paplay.c
index 2c779a7a..e7076d2d 100644
--- a/src/utils/paplay.c
+++ b/src/utils/paplay.c
@@ -123,7 +123,7 @@ static void stream_write_callback(pa_stream *s, size_t length, void *userdata) {
else
pa_xfree(data);
- if (bytes < length) {
+ if (bytes < (sf_count_t) length) {
sf_close(sndfile);
sndfile = NULL;
pa_operation_unref(pa_stream_drain(s, stream_drain_complete, NULL));