1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-08-02 00:49:33 +02:00

ProjectFileIO: Check for SQLITE_ENABLE_DBPAGE_VTAB option

Signed-off-by: Leon Marz <main@lmarz.org>
This commit is contained in:
Leon Marz 2021-08-31 12:17:48 +02:00
parent e0132ca9c0
commit b805725a61

View File

@ -2389,6 +2389,12 @@ int64_t ProjectFileIO::GetDiskUsage(DBConnection &conn, SampleBlockID blockid /*
int64_t right = 0;
int rc;
// "sqlite_dbpage" is a compile-time defined option
if(!sqlite3_compileoption_used("SQLITE_ENABLE_DBPAGE_VTAB"))
{
return 0;
}
// Get the rootpage for the sampleblocks table.
sqlite3_stmt *stmt =
conn.Prepare(DBConnection::GetRootPage,