summaryrefslogtreecommitdiffstats
path: root/stream/stream_dvd.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-07-07 20:49:15 +0200
committerwm4 <wm4@nowhere>2013-07-07 21:10:44 +0200
commitc4f83ac6e93ec9ff2fe97b3f5c6fccc9751fa3e2 (patch)
tree31ae282e119a8de906997afb6ab4d6b5f3ea264d /stream/stream_dvd.c
parentdbf2a6f7d0a9ae09bac024cf3ad4e7b27d303cb6 (diff)
downloadmpv-c4f83ac6e93ec9ff2fe97b3f5c6fccc9751fa3e2.tar.bz2
mpv-c4f83ac6e93ec9ff2fe97b3f5c6fccc9751fa3e2.tar.xz
stream: remove weird STREAMTYPE_STREAM special handling
This was an old leftover from an earlier cleanup (which happened in 2003), and which used "special" stuff for streams that could be only forward-seeked. Also, don't add mode flags to s->flags; they're supposed to be in s->mode instead.
Diffstat (limited to 'stream/stream_dvd.c')
-rw-r--r--stream/stream_dvd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stream/stream_dvd.c b/stream/stream_dvd.c
index 23d933e344..bf9cb9d4c7 100644
--- a/stream/stream_dvd.c
+++ b/stream/stream_dvd.c
@@ -1037,7 +1037,7 @@ static int open_s(stream_t *stream,int mode, void* opts, int* file_format) {
// return NULL;
stream->type = STREAMTYPE_DVD;
stream->sector_size = 2048;
- stream->flags = STREAM_READ | MP_STREAM_SEEK;
+ stream->flags = MP_STREAM_SEEK;
stream->fill_buffer = fill_buffer;
stream->seek = seek;
stream->control = control;