Commit 024cbe94 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

archive: fix NULL program counter

parent 47f74a83
......@@ -34,6 +34,12 @@ struct stream_sys_t
uint8_t buffer[ARCHIVE_READ_SIZE];
};
static ssize_t NoRead(stream_t *p_stream, void *buf, size_t len)
{
(void) p_stream; (void) buf; (void) len;
return -1;
}
static int Control(stream_t *p_stream, int i_query, va_list args)
{
switch( i_query )
......@@ -190,7 +196,7 @@ int StreamOpen(vlc_object_t *p_object)
return VLC_EGENERIC;
}
p_stream->pf_read = NULL;
p_stream->pf_read = NoRead;
p_stream->pf_seek = NULL;
p_stream->pf_control = Control;
p_stream->pf_readdir = Browse;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment