stream: always disable cache for pseudo-streams

Streams which don't have a full_buffer function never return any actual
data. Slight improvement over commit 5640c195.
This commit is contained in:
wm4 2014-12-24 14:33:34 +01:00
parent 51abca8afd
commit 2b3b88b6ee
2 changed files with 3 additions and 1 deletions

View File

@ -325,6 +325,9 @@ static int open_internal(const stream_info_t *sinfo, struct stream *underlying,
if (!s->read_chunk)
s->read_chunk = 4 * (s->sector_size ? s->sector_size : STREAM_BUFFER_SIZE);
if (!s->fill_buffer)
s->allow_caching = false;
assert(s->seekable == !!s->seek);
s->uncached_type = s->type;

View File

@ -7,7 +7,6 @@ static int s_open (struct stream *stream)
{
stream->type = STREAMTYPE_EDL;
stream->demuxer = "edl";
stream->allow_caching = false;
return STREAM_OK;
}