diff options
author | wm4 <wm4@nowhere> | 2014-07-20 20:42:03 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-07-20 20:42:03 +0200 |
commit | 9736f3309acf387e42aef847f594463e3351bbc2 (patch) | |
tree | ff3feecdb9dbbec909ed18c681e8a3047277a6d6 /audio/decode/ad_mpg123.c | |
parent | e982b5b287d1a178bea444c6d0f81a877db2d0c9 (diff) | |
download | mpv-9736f3309acf387e42aef847f594463e3351bbc2.tar.bz2 mpv-9736f3309acf387e42aef847f594463e3351bbc2.tar.xz |
audio: use symbolic constants instead of magic integers
Similar to commit 26468743.
Diffstat (limited to 'audio/decode/ad_mpg123.c')
-rw-r--r-- | audio/decode/ad_mpg123.c | 7 |
1 files changed, 3 insertions, 4 deletions
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) |