Commit c3a47fe3 authored by Eric Wong's avatar Eric Wong

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
parent 6fbbc642
...@@ -173,10 +173,12 @@ static int mpc_decode(OutputBuffer * cb, DecoderControl * dc, ...@@ -173,10 +173,12 @@ static int mpc_decode(OutputBuffer * cb, DecoderControl * dc,
closeInputStream(inStream); closeInputStream(inStream);
if (!dc->stop) { if (!dc->stop) {
ERROR("Not a valid musepack stream\n"); ERROR("Not a valid musepack stream\n");
return -1;
} else { } else {
dc->state = DECODE_STATE_STOP; dc->state = DECODE_STATE_STOP;
dc->stop = 0; dc->stop = 0;
} }
return 0;
} }
dc->totalTime = mpc_streaminfo_get_length(&info); dc->totalTime = mpc_streaminfo_get_length(&info);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment