As cdtext extraction preempts a cddb lookup, make sure we got useful data from cdtext. Out of the 30 CDs I've tried all get reported as having cdtext but only one renders any useful data. This should at least give cddb a shot.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32194 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
5de5d05605
commit
06103a3046
@ -562,6 +562,14 @@ read_cdtext(int fd, struct cdtext &cdtext)
|
||||
|
||||
free(buffer);
|
||||
|
||||
if (cdtext.artist == NULL || cdtext.album == NULL)
|
||||
return B_ERROR;
|
||||
|
||||
for (int i = 0; i < cdtext.track_count; i++) {
|
||||
if (cdtext.titles[i] == NULL)
|
||||
return B_ERROR;
|
||||
}
|
||||
|
||||
sanitize_string(cdtext.artist);
|
||||
sanitize_album(cdtext);
|
||||
sanitize_titles(cdtext);
|
||||
|
Loading…
Reference in New Issue
Block a user