summaryrefslogtreecommitdiff
path: root/src/demuxers/demux_asf.c
diff options
context:
space:
mode:
authorGuenter Bartsch <guenter@users.sourceforge.net>2002-11-03 20:39:28 +0000
committerGuenter Bartsch <guenter@users.sourceforge.net>2002-11-03 20:39:28 +0000
commit5f65d6a02533e77fe8b0b143b74cd1c2272f227a (patch)
treeacab0a7026c6464a70dfc415931bbdcf44122e45 /src/demuxers/demux_asf.c
parent208a8f8d715d3085498aa26eb996b6a7f6c8e41f (diff)
downloadxine-lib-5f65d6a02533e77fe8b0b143b74cd1c2272f227a.tar.gz
xine-lib-5f65d6a02533e77fe8b0b143b74cd1c2272f227a.tar.bz2
never read() from a non-seekable input plugin in content detection stage (other demuxers have no chance to seek back the stream\!) - use preview data instead
CVS patchset: 3168 CVS date: 2002/11/03 20:39:28
Diffstat (limited to 'src/demuxers/demux_asf.c')
-rw-r--r--src/demuxers/demux_asf.c16
1 files changed, 13 insertions, 3 deletions
diff --git a/src/demuxers/demux_asf.c b/src/demuxers/demux_asf.c
index 9b09ceb51..e26873d38 100644
--- a/src/demuxers/demux_asf.c
+++ b/src/demuxers/demux_asf.c
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: demux_asf.c,v 1.74 2002/11/01 17:41:04 mroi Exp $
+ * $Id: demux_asf.c,v 1.75 2002/11/03 20:39:28 guenter Exp $
*
* demultiplexer for asf streams
*
@@ -40,9 +40,9 @@
#include "demux.h"
#include "xineutils.h"
-/*
+
#define LOG
-*/
+
#define PACKET_SIZE 3200
#define PACKET_HEADER_SIZE 12
@@ -396,6 +396,12 @@ static int asf_read_header (demux_asf_t *this) {
get_guid(this, &g);
if (memcmp(&g, &asf_header, sizeof(GUID))) {
printf ("demux_asf: file doesn't start with an asf header\n");
+#ifdef LOG
+ printf ("demux_asf: GUID: 0x%x, 0x%x, 0x%x, "
+ "{ 0x%hx, 0x%hx, 0x%hx, 0x%hx, 0x%hx, 0x%hx, 0x%hx, 0x%hx }\n",
+ g.v1, g.v2, g.v3,
+ g.v4[0], g.v4[1], g.v4[2], g.v4[3], g.v4[4], g.v4[5], g.v4[6], g.v4[7]);
+#endif
return 0;
}
get_le64(this);
@@ -1314,6 +1320,10 @@ static demux_plugin_t *open_plugin (demux_class_t *class_gen,
if (input->read (input, buf, 8192) != 8192)
return NULL;
+#ifdef LOG
+ printf ("demux_asf: PREVIEW data unavailable, but seek+read worked.\n");
+#endif
+
} else
return NULL;
}