if totalTime < 0, set it to 0

git-svn-id: https://svn.musicpd.org/mpd/trunk@1157 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
Warren Dukes 2004-05-25 16:43:07 +00:00
parent eb6aea898e
commit a754382ac9

View File

@ -199,6 +199,7 @@ int ogg_decode(OutputBuffer * cb, DecoderControl * dc, InputStream * inStream)
}
dc->totalTime = ov_time_total(&vf,-1);
if(dc->totalTime < 0) dc->totalTime = 0;
dc->state = DECODE_STATE_DECODE;
{