# HG changeset patch # User reimar # Date 1301173354 0 # Node ID f5dc85f6f84b3aa74c4bd178a05dc9338ab81507 # Parent e97e23af7e8f5982ca5b2728b2a7ab36ef61ead3 Add ugly hack to compensate DVDNAV's ugly hacks and fix seeking. diff -r e97e23af7e8f -r f5dc85f6f84b stream/stream.c --- a/stream/stream.c Sat Mar 26 20:22:43 2011 +0000 +++ b/stream/stream.c Sat Mar 26 21:02:34 2011 +0000 @@ -306,7 +306,9 @@ 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