Commit 28e2ca98 authored by Rocky Bernstein's avatar Rocky Bernstein
Browse files

Better about adding track author and title in track info

section. Also add the extended data.
parent c66e5c08
......@@ -431,9 +431,16 @@ static void InformationCreate( input_thread_t *p_input )
if (p_cdda->i_cddb_enabled) {
cddb_track_t *t=cddb_disc_get_track(p_cdda->cddb.disc,
i_track);
if (t != NULL && t->artist != NULL) {
input_AddInfo( p_cat, _("Artist"), "%s", t->artist );
input_AddInfo( p_cat, _("Title"), "%s", t->title );
if (t != NULL) {
if ( t->artist != NULL && strlen(t->artist) ) {
input_AddInfo( p_cat, _("Artist"), "%s", t->artist );
}
if ( t->title != NULL && strlen(t->title) ) {
input_AddInfo( p_cat, _("Title"), "%s", t->title );
}
if ( t->ext_data != NULL && strlen(t->ext_data) ) {
input_AddInfo( p_cat, _("Extended Data"), "%s", t->ext_data );
}
}
}
#endif
......
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