- input_AddInfo( p_cat, _("Codec Download"), "%s", tk.psz_codec_download_url );
- }
-
- switch( tk.i_cat )
- {
- case AUDIO_ES:
- input_AddInfo( p_cat, _("Type"), _("Audio") );
- input_AddInfo( p_cat, _("Codec"), "%.4s (%s)", (char*)&tk.i_codec, tk.psz_codec );
- if( tk.i_channels > 0 )
- {
- input_AddInfo( p_cat, _("Channels"), "%d", tk.i_channels );
- }
- if( tk.i_samplerate > 0 )
- {
- input_AddInfo( p_cat, _("Sample Rate"), "%d", tk.i_samplerate );
- }
- if( tk.i_bitspersample )
- {
- input_AddInfo( p_cat, _("Bits Per Sample"), "%d", tk.i_bitspersample );
- }
- break;
- case VIDEO_ES:
- input_AddInfo( p_cat, _("Type"), _("Video") );
- input_AddInfo( p_cat, _("Codec"), "%.4s (%s)", (char*)&tk.i_codec, tk.psz_codec );
- if( tk.i_width > 0 && tk.i_height )
- {
- input_AddInfo( p_cat, _("Resolution"), "%dx%d", tk.i_width, tk.i_height );
- }
- if( tk.i_display_width > 0 && tk.i_display_height )
- {
- input_AddInfo( p_cat, _("Display Resolution"), "%dx%d", tk.i_display_width, tk.i_display_height );
- }
- if( tk.f_fps > 0.1 )
- {
- input_AddInfo( p_cat, _("Frame Per Second"), "%.3f", tk.f_fps );
- }
- break;
- case SPU_ES:
- input_AddInfo( p_cat, _("Type"), _("Subtitle") );
- input_AddInfo( p_cat, _("Codec"), "%s", tk.psz_codec );
- break;