Playlist Viewer: Always retrieve track Info from disk
Frequency, file size, and the codec are not stored in the database and thus can’t be displayed in the Playlist Viewer's Track Info screen when metadata is only retrieved from the database. Change-Id: I9e1d11c13ad8bf7b90b654ed78e4e7f763c30f8a
This commit is contained in:
parent
0e8f3669d0
commit
6703f43f5c
1 changed files with 5 additions and 12 deletions
|
@ -484,12 +484,6 @@ static int show_track_info(struct playlist_entry *current_track)
|
|||
struct mp3entry id3;
|
||||
bool id3_retrieval_successful = false;
|
||||
|
||||
#if defined(HAVE_TC_RAMCACHE) && defined(HAVE_DIRCACHE)
|
||||
if (tagcache_fill_tags(&id3, current_track->name))
|
||||
id3_retrieval_successful = true;
|
||||
else
|
||||
#endif
|
||||
{
|
||||
int fd = open(current_track->name, O_RDONLY);
|
||||
if (fd >= 0)
|
||||
{
|
||||
|
@ -497,7 +491,6 @@ static int show_track_info(struct playlist_entry *current_track)
|
|||
id3_retrieval_successful = true;
|
||||
close(fd);
|
||||
}
|
||||
}
|
||||
|
||||
return id3_retrieval_successful &&
|
||||
browse_id3(&id3, current_track->index + 1,
|
||||
|
|
Loading…
Reference in a new issue