[vlc-commits] demux: asf: add fake root guid for debugging
Francois Cartegnie
git at videolan.org
Mon Nov 25 18:18:18 CET 2013
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Mon Nov 25 17:25:57 2013 +0100| [5e8fb7c2a667772fa5f4f4e1642b72571d01429f] | committer: Francois Cartegnie
demux: asf: add fake root guid for debugging
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5e8fb7c2a667772fa5f4f4e1642b72571d01429f
---
modules/demux/asf/libasf.c | 3 ++-
modules/demux/asf/libasf_guid.h | 8 ++++++++
2 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/modules/demux/asf/libasf.c b/modules/demux/asf/libasf.c
index afc57eb..8232656 100644
--- a/modules/demux/asf/libasf.c
+++ b/modules/demux/asf/libasf.c
@@ -1517,6 +1517,7 @@ static const struct
const char *psz_name;
} ASF_ObjectDumpDebugInfo[] =
{
+ { &vlc_object_root_guid, "Root" },
{ &asf_object_header_guid, "Header" },
{ &asf_object_data_guid, "Data" },
{ &asf_object_index_guid, "Index" },
@@ -1607,7 +1608,7 @@ asf_object_root_t *ASF_ReadObjectRoot( stream_t *s, int b_seekable )
return NULL;
p_root->i_type = ASF_OBJECT_ROOT;
- memcpy( &p_root->i_object_id, &asf_object_null_guid, sizeof( guid_t ) );
+ memcpy( &p_root->i_object_id, &vlc_object_root_guid, sizeof( guid_t ) );
p_root->i_object_pos = stream_Tell( s );
p_root->i_object_size = 0;
p_root->p_first = NULL;
diff --git a/modules/demux/asf/libasf_guid.h b/modules/demux/asf/libasf_guid.h
index 7681a7e..ef6ca0e 100644
--- a/modules/demux/asf/libasf_guid.h
+++ b/modules/demux/asf/libasf_guid.h
@@ -62,6 +62,14 @@ static const guid_t asf_object_null_guid =
{ 0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00 }
};
+static const guid_t vlc_object_root_guid =
+{
+ 0x00000000,
+ 0x0000,
+ 0x0000,
+ { 0x56, 0x4C, 0x43, 0x52, 0x4F, 0x4F, 0x54, 0x00 }
+};
+
/* Top-Level object */
static const guid_t asf_object_header_guid =
{0x75B22630, 0x668E, 0x11CF, {0xA6, 0xD9, 0x00, 0xAA, 0x00, 0x62, 0xCE, 0x6C}};
More information about the vlc-commits
mailing list