summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2010-09-05 18:56:35 +0200
committerJon Bergli Heier <snakebite@jvnv.net>2010-09-05 18:56:35 +0200
commit80b0626ec8e6534d4783c79c61ca15f5555c4caf (patch)
tree7d899b9f38a897ee83a8b5d900e44e0566672496
parent9b3867cf05783a62553e49573f86a6608992e358 (diff)
Return stream write value in lame_encoder_encode().
-rw-r--r--encoders/encoder_lame.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/encoders/encoder_lame.c b/encoders/encoder_lame.c
index b28e52e..39dea94 100644
--- a/encoders/encoder_lame.c
+++ b/encoders/encoder_lame.c
@@ -25,9 +25,7 @@ static gssize lame_encoder_encode(gpointer data, GInputStream *input,
int ret = lame_encode_buffer_interleaved(gfp, (short*)inbuf, inbuf_read / 4,
outbuf, outbuf_size);
- g_output_stream_write(output, outbuf, ret, NULL, NULL);
-
- return ret;
+ return g_output_stream_write(output, outbuf, ret, NULL, NULL);
}
static void lame_encoder_close(gpointer data) {