summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuenter Bartsch <guenter@users.sourceforge.net>2002-11-22 20:13:14 +0000
committerGuenter Bartsch <guenter@users.sourceforge.net>2002-11-22 20:13:14 +0000
commit19027e59fd45790639770a50ba8e55ea4ef999be (patch)
tree7386965115b822efe466fe34dd7e147a3ec86131
parent5f9238ac1f7eea779b4eec662d91779598571563 (diff)
downloadxine-lib-19027e59fd45790639770a50ba8e55ea4ef999be.tar.gz
xine-lib-19027e59fd45790639770a50ba8e55ea4ef999be.tar.bz2
_NEVER_ read from a non-seekable input plugin in content detection phase :-}
CVS patchset: 3342 CVS date: 2002/11/22 20:13:14
-rw-r--r--src/demuxers/demux_vqa.c7
1 files changed, 6 insertions, 1 deletions
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;