summaryrefslogtreecommitdiff
path: root/sys/src
diff options
context:
space:
mode:
authorSigrid <ftrvxmtrx@gmail.com>2020-08-18 16:45:00 +0200
committerSigrid <ftrvxmtrx@gmail.com>2020-08-18 16:45:00 +0200
commitde34481f8b80306b58687c1a3039feb785c4f98f (patch)
tree75cbf4a0c5d6098032e1e609e82a21efa9c40de2 /sys/src
parent5405ee61ae0c8019598a974f02647bdaecf18c6f (diff)
oggdec: give it enough chance to seek from the start, where first seek might be still too close to the beginning of the file
Diffstat (limited to 'sys/src')
-rw-r--r--sys/src/cmd/audio/oggdec/oggdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/cmd/audio/oggdec/oggdec.c b/sys/src/cmd/audio/oggdec/oggdec.c
index 829f7f4f9..753508f0d 100644
--- a/sys/src/cmd/audio/oggdec/oggdec.c
+++ b/sys/src/cmd/audio/oggdec/oggdec.c
@@ -298,7 +298,7 @@ BOS:/* Begin of stream */
}else{
if(seeking){
time = vorbis_granule_time(&vd, ogg_page_granulepos(&og));
- if(time > left && time < right && time - lasttime > 0.1){
+ if(time > left && time < right && (time - lasttime > 0.1 || lasttime < 0.1)){
if(time > seek)
right = time;
else