diff options
author | Guenter Bartsch <guenter@users.sourceforge.net> | 2002-11-22 16:22:01 +0000 |
---|---|---|
committer | Guenter Bartsch <guenter@users.sourceforge.net> | 2002-11-22 16:22:01 +0000 |
commit | fddec809f8689124e559ac0db775cac766946d46 (patch) | |
tree | 5cedc42e0317825919dba7d553ac0a45d8e49732 | |
parent | 69afc242bd4e16828ca769fa4f066e7f46b129f8 (diff) | |
download | xine-lib-fddec809f8689124e559ac0db775cac766946d46.tar.gz xine-lib-fddec809f8689124e559ac0db775cac766946d46.tar.bz2 |
fix small bug so real demuxer will hopefully no longer feel responsible for vcd content
CVS patchset: 3333
CVS date: 2002/11/22 16:22:01
-rw-r--r-- | src/demuxers/demux_real.c | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/src/demuxers/demux_real.c b/src/demuxers/demux_real.c index 05fd6fad5..894af0f63 100644 --- a/src/demuxers/demux_real.c +++ b/src/demuxers/demux_real.c @@ -21,7 +21,7 @@ * For more information regarding the Real file format, visit: * http://www.pcisys.net/~melanson/codecs/ * - * $Id: demux_real.c,v 1.12 2002/11/22 03:38:07 guenter Exp $ + * $Id: demux_real.c,v 1.13 2002/11/22 16:22:01 guenter Exp $ */ #ifdef HAVE_CONFIG_H @@ -858,8 +858,6 @@ static demux_plugin_t *open_plugin (demux_class_t *class_gen, xine_stream_t *str input_plugin_t *input = (input_plugin_t *) input_gen; demux_real_t *this; - printf ("demux_real: open_plugin\n"); - switch (stream->content_detection_method) { case METHOD_BY_CONTENT: @@ -872,13 +870,22 @@ static demux_plugin_t *open_plugin (demux_class_t *class_gen, xine_stream_t *str if (input->read(input, buf, 4)) { + printf ("demux_real: input seekable, read 4 bytes: %02x %02x %02x %02x\n", + buf[0], buf[1], buf[2], buf[3]); + if ((buf[0] != 0x2e) || (buf[1] != 'R') || (buf[2] != 'M') || (buf[3] != 'F')) return NULL; - } + } else + return NULL; + } else if (input->get_optional_data (input, buf, INPUT_OPTIONAL_DATA_PREVIEW)) { + + printf ("demux_real: input provides preview, read 4 bytes: %02x %02x %02x %02x\n", + buf[0], buf[1], buf[2], buf[3]); + if ((buf[0] != 0x2e) || (buf[1] != 'R') || (buf[2] != 'M') |