+ psz_name, "%s", psz_value );
+/*TODO: dot he test at the beginning and save time !! */
+#ifndef HAVE_TAGLIB
+ if( psz_value && ( *psz_value != '\0' ) )
+ {
+ if( !strcasecmp( psz_name, "artist" ) )
+ input_item_SetArtist( p_item, psz_value );
+ else if( !strcasecmp( psz_name, "title" ) )
+ {
+ input_item_SetTitle( p_item, psz_value );
+ p_item->psz_name = strdup( psz_value );
+ }
+ else if( !strcasecmp( psz_name, "album" ) )
+ {
+ input_item_SetAlbum( p_item, psz_value );
+ }
+ else if( !strcasecmp( psz_name, "musicbrainz_trackid" ) )
+ input_item_SetTrackID( p_item, psz_value );
+#if 0 //not used
+ else if( !strcasecmp( psz_name, "musicbrainz_artistid" ) )
+ vlc_meta_SetArtistID( p_item, psz_value );
+ else if( !strcasecmp( psz_name, "musicbrainz_albumid" ) )
+ input_item_SetAlbumID( p_item, psz_value );
+#endif
+ }
+#endif
+ if( !strcasecmp( psz_name, "REPLAYGAIN_TRACK_GAIN" ) ||
+ !strcasecmp( psz_name, "RG_RADIO" ) )
+ {
+ audio_replay_gain_t *r = &p_dec->fmt_out.audio_replay_gain;
+
+ r->pb_gain[AUDIO_REPLAY_GAIN_TRACK] = true;
+ r->pf_gain[AUDIO_REPLAY_GAIN_TRACK] = atof( psz_value );
+ }
+ else if( !strcasecmp( psz_name, "REPLAYGAIN_TRACK_PEAK" ) ||
+ !strcasecmp( psz_name, "RG_PEAK" ) )
+ {
+ audio_replay_gain_t *r = &p_dec->fmt_out.audio_replay_gain;
+
+ r->pb_peak[AUDIO_REPLAY_GAIN_TRACK] = true;
+ r->pf_peak[AUDIO_REPLAY_GAIN_TRACK] = atof( psz_value );
+ }
+ else if( !strcasecmp( psz_name, "REPLAYGAIN_ALBUM_GAIN" ) ||
+ !strcasecmp( psz_name, "RG_AUDIOPHILE" ) )
+ {
+ audio_replay_gain_t *r = &p_dec->fmt_out.audio_replay_gain;
+
+ r->pb_gain[AUDIO_REPLAY_GAIN_ALBUM] = true;
+ r->pf_gain[AUDIO_REPLAY_GAIN_ALBUM] = atof( psz_value );
+ }
+ else if( !strcasecmp( psz_name, "REPLAYGAIN_ALBUM_PEAK" ) )
+ {
+ audio_replay_gain_t *r = &p_dec->fmt_out.audio_replay_gain;
+
+ r->pb_peak[AUDIO_REPLAY_GAIN_ALBUM] = true;
+ r->pf_peak[AUDIO_REPLAY_GAIN_ALBUM] = atof( psz_value );
+ }