# HG changeset patch # User nicodvb # Date 1194727528 0 # Node ID 42482c2e8f6c38d924e3d50bed4633a0e3c4e12d # Parent e09187679c34c5400c01190937330462602217bb at the end of open() warn users that seeking won't work correctly if the cache is enabled diff -r e09187679c34 -r 42482c2e8f6c stream/stream_dvd.c --- a/stream/stream_dvd.c Sat Nov 10 19:48:17 2007 +0000 +++ b/stream/stream_dvd.c Sat Nov 10 20:45:28 2007 +0000 @@ -1085,6 +1085,8 @@ *file_format = DEMUXER_TYPE_MPEG_PS; mp_msg(MSGT_DVD,MSGL_V,"DVD start=%d end=%d \n",d->cur_pack,d->cur_pgc->cell_playback[d->last_cell-1].last_sector); stream->priv = (void*)d; + if(stream_cache_size > 0) + mp_msg(MSGT_DVD,MSGL_INFO,"[stream_dvd] Warning! the cache is enabled. Seeking won't work correctly\n"); return STREAM_OK; fail: