From 8d63528e957f6c1c058b8f762fd62a88db88fb17 Mon Sep 17 00:00:00 2001 From: nicodvb Date: Sat, 10 Nov 2007 20:45:28 +0000 Subject: at the end of open() warn users that seeking won't work correctly if the cache is enabled git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25014 b3059339-0415-0410-9bf9-f77b7e298cf2 --- stream/stream_dvd.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stream/stream_dvd.c b/stream/stream_dvd.c index c5b027733e..d2cb87b18a 100644 --- a/stream/stream_dvd.c +++ b/stream/stream_dvd.c @@ -1085,6 +1085,8 @@ static int open_s(stream_t *stream,int mode, void* opts, int* file_format) { *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: -- cgit v1.2.3