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:
parent
eb6aea898e
commit
a754382ac9
@ -199,6 +199,7 @@ int ogg_decode(OutputBuffer * cb, DecoderControl * dc, InputStream * inStream)
|
|||||||
}
|
}
|
||||||
|
|
||||||
dc->totalTime = ov_time_total(&vf,-1);
|
dc->totalTime = ov_time_total(&vf,-1);
|
||||||
|
if(dc->totalTime < 0) dc->totalTime = 0;
|
||||||
dc->state = DECODE_STATE_DECODE;
|
dc->state = DECODE_STATE_DECODE;
|
||||||
|
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user