diff options
author | Eric Wong <normalperson@yhbt.net> | 2008-01-01 03:01:58 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2008-01-01 03:01:58 +0000 |
commit | c3a47fe364417d7833b8855c3d629f04b617d5c3 (patch) | |
tree | 77790918dd7a9975afcfda92e4145e1efb6442f0 /src/inputPlugins | |
parent | 6fbbc642dddcab300eff2ddffe267aed9696a1e9 (diff) | |
download | mpd-c3a47fe364417d7833b8855c3d629f04b617d5c3.tar.gz mpd-c3a47fe364417d7833b8855c3d629f04b617d5c3.tar.xz mpd-c3a47fe364417d7833b8855c3d629f04b617d5c3.zip |
mpc_plugin: break out if a missed error branch
We shouldn't try to continue if mpc_decoder_initialize() fails.
git-svn-id: https://svn.musicpd.org/mpd/trunk@7113 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/inputPlugins')
-rw-r--r-- | src/inputPlugins/mpc_plugin.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/inputPlugins/mpc_plugin.c b/src/inputPlugins/mpc_plugin.c index 25cb678b6..46de5b8ea 100644 --- a/src/inputPlugins/mpc_plugin.c +++ b/src/inputPlugins/mpc_plugin.c @@ -173,10 +173,12 @@ static int mpc_decode(OutputBuffer * cb, DecoderControl * dc, closeInputStream(inStream); if (!dc->stop) { ERROR("Not a valid musepack stream\n"); + return -1; } else { dc->state = DECODE_STATE_STOP; dc->stop = 0; } + return 0; } dc->totalTime = mpc_streaminfo_get_length(&info); |