From 9736f3309acf387e42aef847f594463e3351bbc2 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 20 Jul 2014 20:42:03 +0200 Subject: audio: use symbolic constants instead of magic integers Similar to commit 26468743. --- audio/decode/ad_mpg123.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'audio/decode/ad_mpg123.c') diff --git a/audio/decode/ad_mpg123.c b/audio/decode/ad_mpg123.c index ec4dc04485..055285cccd 100644 --- a/audio/decode/ad_mpg123.c +++ b/audio/decode/ad_mpg123.c @@ -309,7 +309,7 @@ static int decode_audio(struct dec_audio *da, struct mp_audio *buffer, int maxle if (con->need_data) { if (feed_new_packet(da) < 0) - return -1; + return AD_ERR; } if (!mp_audio_config_equals(&da->decoded, buffer)) @@ -338,9 +338,8 @@ static int decode_audio(struct dec_audio *da, struct mp_audio *buffer, int maxle return 0; mpg123_fail: - MP_ERR(da, "mpg123 decoding error: %s\n", - mpg123_strerror(con->handle)); - return -1; + MP_ERR(da, "mpg123 decoding error: %s\n", mpg123_strerror(con->handle)); + return AD_ERR; } static int control(struct dec_audio *da, int cmd, void *arg) -- cgit v1.2.3