mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +00:00
stream: don't require streams to set a type
Set the type only for streams that have special treatment in other parts of the code.
This commit is contained in:
@@ -165,7 +165,6 @@ static int open_f (stream_t *stream, int mode, void *opts)
|
||||
stream->seek = seek;
|
||||
if(mode == STREAM_READ) stream->end_pos = len;
|
||||
}
|
||||
stream->type = STREAMTYPE_SMB;
|
||||
stream->fd = fd;
|
||||
stream->fill_buffer = fill_buffer;
|
||||
stream->write_buffer = write_buffer;
|
||||
|
||||
Reference in New Issue
Block a user