# HG changeset patch # User mosu # Date 1066236415 0 # Node ID db9ced94349613d7fa8316fb86bd41c8e1823fb9 # Parent bfef1e3311864b69051e80cceb5968e889b7845e Clear subs a bit later than requested in order to avoid clearing the subs if the following entry starts exactly after this one. Patch by Jarrod Johnson . diff -r bfef1e331186 -r db9ced943496 libmpdemux/demux_ogg.c --- a/libmpdemux/demux_ogg.c Wed Oct 15 16:37:42 2003 +0000 +++ b/libmpdemux/demux_ogg.c Wed Oct 15 16:46:55 2003 +0000 @@ -237,7 +237,7 @@ if(pack->granulepos == -1) pack->granulepos = os->lastpos + os->lastsize; pts = (float)pack->granulepos/(float)os->samplerate; - clear_sub = pts + (float)duration/1000.0; + clear_sub = 0.001 + pts + (float)duration/1000.0; } while (1) { int c = packet[lcv++];