Ejemplo n.º 1
0
void SmoothArtUIE::GetSelectedArt(t_size p_playlist)
{
	metadb_handle_ptr meta_handle;

	if (playback->get_now_playing(meta_handle))
		return;

	//t_size playing_list, playing_item;
	//playing_list = playlist->get_active_playlist();

	pfc::list_t<metadb_handle_ptr> selected = pfc::list_t<metadb_handle_ptr>();
	//	if (playlist->get_playing_item_location(&playing_list, &playing_item))

	playlist->playlist_get_selected_items(p_playlist, selected);
	if (selected.get_count() > 0)
	{
		//if (playlist->playlist_get_item_handle(meta_handle, playing_list, playing_item))
		meta_handle = selected.get_item(0);
		GetArt(meta_handle->get_path());
	}
}
Ejemplo n.º 2
0
void SmoothArtUIE::on_playback_new_track(metadb_handle_ptr p_track)
{
	GetArt(p_track->get_path());
}
Ejemplo n.º 3
0
bool CGUIListItem::HasArt(const std::string &type) const
{
  return !GetArt(type).empty();
}