From a754382ac9f439f409468e842bdf28ded49b5917 Mon Sep 17 00:00:00 2001 From: Warren Dukes Date: Tue, 25 May 2004 16:43:07 +0000 Subject: if totalTime < 0, set it to 0 git-svn-id: https://svn.musicpd.org/mpd/trunk@1157 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/ogg_decode.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/ogg_decode.c b/src/ogg_decode.c index 2cb70c4e1..409e2868e 100644 --- a/src/ogg_decode.c +++ b/src/ogg_decode.c @@ -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; { -- cgit v1.2.3