ProxyDatabase: obey visitor return values
This commit is contained in:
parent
fcf0f8291d
commit
4e1eb03287
@ -323,20 +323,23 @@ Visit(struct mpd_connection *connection, struct directory &parent,
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case MPD_ENTITY_TYPE_DIRECTORY:
|
case MPD_ENTITY_TYPE_DIRECTORY:
|
||||||
Visit(connection, parent, recursive,
|
if (!Visit(connection, parent, recursive,
|
||||||
mpd_entity_get_directory(entity),
|
mpd_entity_get_directory(entity),
|
||||||
visit_directory, visit_song, visit_playlist,
|
visit_directory, visit_song, visit_playlist,
|
||||||
error_r);
|
error_r))
|
||||||
|
return false;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case MPD_ENTITY_TYPE_SONG:
|
case MPD_ENTITY_TYPE_SONG:
|
||||||
Visit(parent, mpd_entity_get_song(entity), visit_song,
|
if (!Visit(parent, mpd_entity_get_song(entity),
|
||||||
error_r);
|
visit_song, error_r))
|
||||||
|
return false;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case MPD_ENTITY_TYPE_PLAYLIST:
|
case MPD_ENTITY_TYPE_PLAYLIST:
|
||||||
Visit(parent, mpd_entity_get_playlist(entity),
|
if (!Visit(parent, mpd_entity_get_playlist(entity),
|
||||||
visit_playlist, error_r);
|
visit_playlist, error_r))
|
||||||
|
return false;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user