[NUT-devel] [nut]: r244 - trunk/libnut/demuxer.c
ods15
subversion at mplayerhq.hu
Sat Nov 18 16:36:37 CET 2006
Author: ods15
Date: Sat Nov 18 16:36:37 2006
New Revision: 244
Modified:
trunk/libnut/demuxer.c
Log:
slight change in EAGAIN rewind in linear_search
Modified: trunk/libnut/demuxer.c
==============================================================================
--- trunk/libnut/demuxer.c (original)
+++ trunk/libnut/demuxer.c Sat Nov 18 16:36:37 2006
@@ -1240,8 +1240,8 @@
}
nut->seek_status = 0;
} else if (buf_before) {
- nut->i->buf_ptr -= bctello(nut->i) - buf_before; // rewind
- if (nut->i->buf_ptr < nut->i->buf) nut->i->buf_ptr = nut->i->buf; // special case, possible with find_syncpoint
+ if (buf_before >= nut->i->file_pos) nut->i->buf_ptr = get_buf(nut->i, buf_before); // rewind
+ else nut->i->buf_ptr = nut->i->buf; // special case, possible with smart_/find_syncpoint
}
return err;
}
More information about the NUT-devel
mailing list