[vlc-commits] demux: asf: show codec in debug
Francois Cartegnie
git at videolan.org
Thu Feb 23 11:58:36 CET 2017
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu Feb 23 11:45:51 2017 +0100| [3f97758595458677f54b611b6f7f6e4d29947878] | committer: Francois Cartegnie
demux: asf: show codec in debug
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3f97758595458677f54b611b6f7f6e4d29947878
---
modules/demux/asf/asf.c | 13 ++++++-------
1 file changed, 6 insertions(+), 7 deletions(-)
diff --git a/modules/demux/asf/asf.c b/modules/demux/asf/asf.c
index 5e50ffc..cb1afd2 100644
--- a/modules/demux/asf/asf.c
+++ b/modules/demux/asf/asf.c
@@ -962,9 +962,8 @@ static int DemuxInit( demux_t *p_demux )
memcpy( fmt.p_extra, &p_data[sizeof( WAVEFORMATEX )],
fmt.i_extra );
}
-
- msg_Dbg( p_demux, "added new audio stream(codec:0x%x,ID:%d)",
- GetWLE( p_data ), p_sp->i_stream_number );
+ msg_Dbg( p_demux, "added new audio stream (codec:%4.4s(0x%x),ID:%d)",
+ (char*)&fmt.i_codec, GetWLE( p_data ), p_sp->i_stream_number );
}
else if( guidcmp( &p_sp->i_stream_type,
&asf_object_stream_type_video ) &&
@@ -1048,8 +1047,8 @@ static int DemuxInit( demux_t *p_demux )
/* If there is a video track then use the index for seeking */
p_sys->b_index = b_index;
- msg_Dbg( p_demux, "added new video stream(ID:%d)",
- p_sp->i_stream_number );
+ msg_Dbg( p_demux, "added new video stream(codec:%4.4s,ID:%d)",
+ (char*)&fmt.i_codec, p_sp->i_stream_number );
}
else if( guidcmp( &p_sp->i_stream_type, &asf_object_stream_type_binary ) &&
p_sp->i_type_specific_data_length >= 64 )
@@ -1114,8 +1113,8 @@ static int DemuxInit( demux_t *p_demux )
fmt.i_extra = 0;
}
- msg_Dbg( p_demux, "added new audio stream (codec:0x%x,ID:%d)",
- i_format, p_sp->i_stream_number );
+ msg_Dbg( p_demux, "added new audio stream (codec:%4.4s(0x%x),ID:%d)",
+ (char*)&fmt.i_codec, i_format, p_sp->i_stream_number );
}
else
{
More information about the vlc-commits
mailing list