[MPlayer-cvslog] r33122 - trunk/stream/stream.c
reimar
subversion at mplayerhq.hu
Sat Mar 26 22:02:34 CET 2011
Author: reimar
Date: Sat Mar 26 22:02:34 2011
New Revision: 33122
Log:
Add ugly hack to compensate DVDNAV's ugly hacks and fix seeking.
Modified:
trunk/stream/stream.c
Modified: trunk/stream/stream.c
==============================================================================
--- trunk/stream/stream.c Sat Mar 26 21:22:43 2011 (r33121)
+++ trunk/stream/stream.c Sat Mar 26 22:02:34 2011 (r33122)
@@ -306,7 +306,9 @@ int stream_read_internal(stream_t *s, vo
len= s->fill_buffer ? s->fill_buffer(s, buf, len) : 0;
}
if(len<=0){
- if (!s->eof) {
+ // dvdnav has some horrible hacks to "suspend" reads,
+ // we need to skip this code or seeks will hang.
+ if (!s->eof && s->type != STREAMTYPE_DVDNAV) {
// just in case this is an error e.g. due to network
// timeout reset and retry
// Seeking is used as a hack to make network streams
More information about the MPlayer-cvslog
mailing list