Diff between 7af429c001387df9335db359c99c62f980492737 and 7498648468133f6a490f020b8e36f1c696c71d5e

Changed Files

File Additions Deletions Status
android/client/if-audio.c +2 -2 modified

Full Patch

diff --git a/android/client/if-audio.c b/android/client/if-audio.c
index 66f8364..db31c81 100644
--- a/android/client/if-audio.c
+++ b/android/client/if-audio.c
@@ -180,7 +180,7 @@ static void *playback_thread(void *data)
 	int (*filbuff_cb) (short*, void*);
 	short buffer[buffer_size / sizeof(short)];
 	size_t len = 0;
-	size_t w_len = 0;
+	ssize_t w_len = 0;
 	FILE *in = data;
 	void *cb_data = NULL;
 	float freq = 440.0;
@@ -223,7 +223,7 @@ static void *playback_thread(void *data)
 
 		w_len = stream_out->write(stream_out, buffer, buffer_size);
 		pthread_mutex_unlock(&outstream_mutex);
-	} while (len && w_len);
+	} while (len && w_len > 0);
 
 	if (in) {
 		fclose(in);