Commit 9e17021b authored by Clément Stenac's avatar Clément Stenac

Simplify

parent 17605dde
...@@ -173,23 +173,12 @@ static int ItemChange( vlc_object_t *p_this, const char *psz_var, ...@@ -173,23 +173,12 @@ static int ItemChange( vlc_object_t *p_this, const char *psz_var,
} }
/* Playing something ... */ /* Playing something ... */
for( i = 0; i < p_input->input.p_item->i_categories; i++ ) psz_artist = vlc_input_item_GetInfo( p_input->input.p_item,
{ _("Meta-information"),
info_category_t *p_cat = p_input->input.p_item->pp_categories[i]; VLC_META_ARTIST);
for( j = 0; j < p_cat->i_infos; j++ ) psz_album = vlc_input_item_GetInfo( p_input->input.p_item,
{ _("Meta-information"),
info_t *p_info = p_cat->pp_infos[j]; _("Album/movie/show title" ) );
if( !strcmp( p_info->psz_name, VLC_META_ARTIST ) )
{
psz_artist = strdup( p_info->psz_value );
}
else if( !strcmp( p_info->psz_name, "Album/movie/show title" ) )
{
psz_album = strdup( p_info->psz_value );
}
}
}
psz_title = strdup( p_input->input.p_item->psz_name ); psz_title = strdup( p_input->input.p_item->psz_name );
if( psz_title == NULL ) psz_title = strdup( N_("(no title)") ); if( psz_title == NULL ) psz_title = strdup( N_("(no title)") );
if( psz_artist == NULL ) psz_artist = strdup( N_("(no artist)") ); if( psz_artist == NULL ) psz_artist = strdup( N_("(no artist)") );
......
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