summaryrefslogtreecommitdiffstats
path: root/stream
diff options
context:
space:
mode:
authornicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-11-10 20:45:28 +0000
committernicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-11-10 20:45:28 +0000
commit8d63528e957f6c1c058b8f762fd62a88db88fb17 (patch)
tree01b9320b9abc567b78f83f235e3b95fe1617afb5 /stream
parente30b2632374c1b0dffe3612f5fd0c64d4b81e2aa (diff)
downloadmpv-8d63528e957f6c1c058b8f762fd62a88db88fb17.tar.bz2
mpv-8d63528e957f6c1c058b8f762fd62a88db88fb17.tar.xz
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
Diffstat (limited to 'stream')
-rw-r--r--stream/stream_dvd.c2
1 files changed, 2 insertions, 0 deletions
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: