aboutsummaryrefslogtreecommitdiffstats
path: root/src/ogg_decode.c
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-05-25 16:43:07 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-05-25 16:43:07 +0000
commita754382ac9f439f409468e842bdf28ded49b5917 (patch)
treed0eaa25d4a5db14eb084c0fe61943307c6e2a9cf /src/ogg_decode.c
parenteb6aea898e37de30b59d5da74b0da371ec7970b2 (diff)
downloadmpd-a754382ac9f439f409468e842bdf28ded49b5917.tar.gz
mpd-a754382ac9f439f409468e842bdf28ded49b5917.tar.xz
mpd-a754382ac9f439f409468e842bdf28ded49b5917.zip
if totalTime < 0, set it to 0
git-svn-id: https://svn.musicpd.org/mpd/trunk@1157 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/ogg_decode.c')
-rw-r--r--src/ogg_decode.c1
1 files changed, 1 insertions, 0 deletions
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;
{