From 19027e59fd45790639770a50ba8e55ea4ef999be Mon Sep 17 00:00:00 2001 From: Guenter Bartsch Date: Fri, 22 Nov 2002 20:13:14 +0000 Subject: _NEVER_ read from a non-seekable input plugin in content detection phase :-} CVS patchset: 3342 CVS date: 2002/11/22 20:13:14 --- src/demuxers/demux_vqa.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/demuxers/demux_vqa.c b/src/demuxers/demux_vqa.c index 1c2aa9e7b..d4be21f51 100644 --- a/src/demuxers/demux_vqa.c +++ b/src/demuxers/demux_vqa.c @@ -27,7 +27,7 @@ * block needs information from the previous audio block in order to be * decoded, thus making random seeking difficult. * - * $Id: demux_vqa.c,v 1.20 2002/11/20 11:57:41 mroi Exp $ + * $Id: demux_vqa.c,v 1.21 2002/11/22 20:13:14 guenter Exp $ */ #ifdef HAVE_CONFIG_H @@ -373,6 +373,11 @@ static demux_plugin_t *open_plugin (demux_class_t *class_gen, xine_stream_t *str case METHOD_BY_CONTENT: case METHOD_EXPLICIT: + if (!(this->input->get_capabilities(this->input) & INPUT_CAP_SEEKABLE)) { + free (this); + return NULL; + } + if (!open_vqa_file(this)) { free (this); return NULL; -- cgit v1.2.3