]> git.sesse.net Git - vlc/commitdiff
demux: asf: add fake root guid for debugging
authorFrancois Cartegnie <fcvlcdev@free.fr>
Mon, 25 Nov 2013 16:25:57 +0000 (17:25 +0100)
committerFrancois Cartegnie <fcvlcdev@free.fr>
Mon, 25 Nov 2013 17:18:10 +0000 (18:18 +0100)
modules/demux/asf/libasf.c
modules/demux/asf/libasf_guid.h

index afc57eb74aa73a52115645e42ce032c04f9fb098..823265666e1a2c898d1d3159c9ca8c43042843d3 100644 (file)
@@ -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;
index 7681a7ef314e0f687042c7b30d98c72aa9d34253..ef6ca0e931dccc6677c40e0d40a4e8e60111f3ba 100644 (file)
@@ -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}};