command/file: return directory_uri if real_uri is unset
Prevent a segfault when accessing album art. Fix #1224 #1225
This commit is contained in:
parent
993d85125e
commit
cfe024ea13
2
NEWS
2
NEWS
@ -1,4 +1,6 @@
|
|||||||
ver 0.22.11 (not yet released)
|
ver 0.22.11 (not yet released)
|
||||||
|
* protocol
|
||||||
|
- fix "albumart" crash
|
||||||
|
|
||||||
ver 0.22.10 (2021/08/06)
|
ver 0.22.10 (2021/08/06)
|
||||||
* protocol
|
* protocol
|
||||||
|
@ -267,6 +267,9 @@ try {
|
|||||||
|
|
||||||
AtScopeExit(db, song) { db->ReturnSong(song); };
|
AtScopeExit(db, song) { db->ReturnSong(song); };
|
||||||
|
|
||||||
|
if (song->real_uri == nullptr)
|
||||||
|
return directory_uri;
|
||||||
|
|
||||||
const char *real_uri = song->real_uri;
|
const char *real_uri = song->real_uri;
|
||||||
|
|
||||||
/* this is a simplification which is just enough for CUE
|
/* this is a simplification which is just enough for CUE
|
||||||
|
Loading…
Reference in New Issue
Block a user