Commit b6b914ef authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

MKV: improve debugging of metadata

parent 6b00c288
...@@ -218,16 +218,6 @@ void matroska_segment_c::LoadCues( KaxCues *cues ) ...@@ -218,16 +218,6 @@ void matroska_segment_c::LoadCues( KaxCues *cues )
} }
#define PARSE_TAG( type ) \
do { \
msg_Dbg( &sys.demuxer, "| + " type ); \
ep->Down(); \
while( ( el = ep->Get() ) != NULL ) \
{ \
msg_Dbg( &sys.demuxer, "| | + Unknown (%s)", typeid( *el ).name() ); \
} \
ep->Up(); } while( 0 )
static const struct { static const struct {
vlc_meta_type_t type; vlc_meta_type_t type;
const char *key; const char *key;
...@@ -285,10 +275,11 @@ void matroska_segment_c::ParseSimpleTags( KaxTagSimple *tag ) ...@@ -285,10 +275,11 @@ void matroska_segment_c::ParseSimpleTags( KaxTagSimple *tag )
if( !strcmp( k, metadata_map[i].key ) ) if( !strcmp( k, metadata_map[i].key ) )
{ {
vlc_meta_Set( sys.meta, metadata_map[i].type, v ); vlc_meta_Set( sys.meta, metadata_map[i].type, v );
msg_Dbg( &sys.demuxer, "| | + Meta %s: %s", k, v);
goto done; goto done;
} }
} }
msg_Dbg( &sys.demuxer, "| | + %s: %s", k, v); msg_Dbg( &sys.demuxer, "| | + Meta %s: %s", k, v);
vlc_meta_AddExtra( sys.meta, k, v ); vlc_meta_AddExtra( sys.meta, k, v );
done: done:
free( k ); free( k );
...@@ -296,6 +287,17 @@ done: ...@@ -296,6 +287,17 @@ done:
return; return;
} }
#define PARSE_TAG( type ) \
do { \
msg_Dbg( &sys.demuxer, "| + " type ); \
ep->Down(); \
while( ( el = ep->Get() ) != NULL ) \
{ \
msg_Dbg( &sys.demuxer, "| | + Unknown (%s)", typeid( *el ).name() ); \
} \
ep->Up(); } while( 0 )
void matroska_segment_c::LoadTags( KaxTags *tags ) void matroska_segment_c::LoadTags( KaxTags *tags )
{ {
/* Master elements */ /* Master elements */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment