From 337533855f09237b8a1e3551b32baa4a87a317b4 Mon Sep 17 00:00:00 2001 From: Uwe Klotz Date: Tue, 20 Jun 2017 23:53:19 +0200 Subject: Fix saving of waveform analysis in database The initialization of the AnalysisDao with the thread-local database connection was missing. The restricted design of the analyzer API required to move the AnalysisDao from AnalyzeWaveform to AnalyzerQueue. --- src/test/analyserwaveformtest.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/test/analyserwaveformtest.cpp') diff --git a/src/test/analyserwaveformtest.cpp b/src/test/analyserwaveformtest.cpp index ad619b842f..8e40121dbb 100644 --- a/src/test/analyserwaveformtest.cpp +++ b/src/test/analyserwaveformtest.cpp @@ -18,7 +18,8 @@ namespace { class AnalyzerWaveformTest: public MixxxTest { protected: AnalyzerWaveformTest() - : aw(config()), + : analysisDao(config()), + aw(&analysisDao), bigbuf(nullptr), canaryBigBuf(nullptr) { } @@ -49,6 +50,7 @@ class AnalyzerWaveformTest: public MixxxTest { } protected: + AnalysisDao analysisDao; AnalyzerWaveform aw; TrackPointer tio; CSAMPLE* bigbuf; -- cgit v1.2.3