diff options
author | Eric Wong <normalperson@yhbt.net> | 2008-01-26 22:16:30 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2008-01-26 22:16:30 +0000 |
commit | 27bfd14c4a6468f185689da0e027e88d3240387f (patch) | |
tree | 177586f714d871479761703e25f092970fb9a0e5 /src/inputPlugins/mpc_plugin.c | |
parent | 06326d66422018151205843907ed5d9ec662f0c4 (diff) | |
download | mpd-27bfd14c4a6468f185689da0e027e88d3240387f.tar.gz mpd-27bfd14c4a6468f185689da0e027e88d3240387f.tar.xz mpd-27bfd14c4a6468f185689da0e027e88d3240387f.zip |
mpc_plugin: break out if a missed error branch
We shouldn't try to continue if mpc_decoder_initialize() fails.
r7113 in trunk
git-svn-id: https://svn.musicpd.org/mpd/branches/branch-0.13.0-fixes@7157 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-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 885f6cfc9..816ddf522 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"); + return -1; } else { dc->state = DECODE_STATE_STOP; dc->stop = 0; } + return 0; } dc->totalTime = mpc_streaminfo_get_length(&info); |