diff options
author | Max Kellermann <max@duempel.org> | 2008-11-20 20:11:00 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-11-20 20:11:00 +0100 |
commit | 927bf45f8436e14b71936c0a22f10ce9ecc8dea6 (patch) | |
tree | b3b8656c5b5810cf6505bd36f3ef1e53b78a966a /src/decoder/oggvorbis_plugin.c | |
parent | 65a8822a0b29c2f321922839bb3e7c28c18cc7c9 (diff) | |
download | mpd-927bf45f8436e14b71936c0a22f10ce9ecc8dea6.tar.gz mpd-927bf45f8436e14b71936c0a22f10ce9ecc8dea6.tar.xz mpd-927bf45f8436e14b71936c0a22f10ce9ecc8dea6.zip |
ogg: moved the "errorStr" variable into the error handler
Diffstat (limited to '')
-rw-r--r-- | src/decoder/oggvorbis_plugin.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/decoder/oggvorbis_plugin.c b/src/decoder/oggvorbis_plugin.c index 3506e0006..539a8e092 100644 --- a/src/decoder/oggvorbis_plugin.c +++ b/src/decoder/oggvorbis_plugin.c @@ -214,7 +214,6 @@ oggvorbis_decode(struct decoder *decoder, struct input_stream *inStream) long test; struct replay_gain_info *replayGainInfo = NULL; char **comments; - const char *errorStr; bool initialized = false; enum decoder_command cmd = DECODE_COMMAND_NONE; @@ -233,6 +232,8 @@ oggvorbis_decode(struct decoder *decoder, struct input_stream *inStream) callbacks.close_func = ogg_close_cb; callbacks.tell_func = ogg_tell_cb; if ((ret = ov_open_callbacks(&data, &vf, NULL, 0, callbacks)) < 0) { + const char *errorStr; + if (decoder_get_command(decoder) != DECODE_COMMAND_NONE) return; |