Merge branch 'v0.21.x'

This commit is contained in:
Max Kellermann
2019-11-04 15:07:46 +01:00
8 changed files with 26 additions and 12 deletions

View File

@@ -87,8 +87,6 @@ Song::UpdateFile(Storage &storage)
return true;
}
#endif
#ifdef ENABLE_ARCHIVE
SongPtr
@@ -130,6 +128,8 @@ Song::UpdateFileInArchive(ArchiveFile &archive) noexcept
#endif
#endif /* ENABLE_DATABASE */
bool
DetachedSong::LoadFile(Path path)
{

View File

@@ -1,4 +1,9 @@
sqlite_dep = dependency('sqlite3', version: '>= 3.7.3', required: get_option('sqlite'))
if enable_database
sqlite_dep = dependency('sqlite3', version: '>= 3.7.3', required: get_option('sqlite'))
else
sqlite_dep = dependency('', required: false)
endif
conf.set('ENABLE_SQLITE', sqlite_dep.found())
if not sqlite_dep.found()
subdir_done()

View File

@@ -1,4 +1,4 @@
if not get_option('neighbor')
if not get_option('neighbor') or not enable_database
conf.set('ENABLE_NEIGHBOR_PLUGINS', false)
neighbor_glue_dep = dependency('', required: false)
subdir_done()

View File

@@ -405,10 +405,11 @@ JackOutput::Connect()
jack_on_info_shutdown(client, OnShutdown, this);
for (unsigned i = 0; i < num_source_ports; ++i) {
unsigned long portflags = JackPortIsOutput | JackPortIsTerminal;
ports[i] = jack_port_register(client,
source_ports[i].c_str(),
JACK_DEFAULT_AUDIO_TYPE,
JackPortIsOutput, 0);
portflags, 0);
if (ports[i] == nullptr) {
Disconnect();
throw FormatRuntimeError("Cannot register output port \"%s\"",