aboutsummaryrefslogtreecommitdiffstats
path: root/src/inputPlugins/mpc_plugin.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/inputPlugins/mpc_plugin.c2
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);