From 986fb959e2c6e24f73d947edaf5f32035b1e91db Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Sun, 9 Aug 2009 12:06:03 +0000 Subject: [PATCH] fix (no)use of offset in AudioEngine::get_sync_offset() git-svn-id: svn://localhost/ardour2/branches/3.0@5500 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/audioengine.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libs/ardour/audioengine.cc b/libs/ardour/audioengine.cc index d9a817cb7b..7b69b54e26 100644 --- a/libs/ardour/audioengine.cc +++ b/libs/ardour/audioengine.cc @@ -217,7 +217,7 @@ AudioEngine::stop (bool forever) bool -AudioEngine::get_sync_offset (nframes_t& /*offset*/) const +AudioEngine::get_sync_offset (nframes_t& offset) const { #ifdef HAVE_JACK_VIDEO_SUPPORT @@ -232,7 +232,9 @@ AudioEngine::get_sync_offset (nframes_t& /*offset*/) const return true; } } - +#else + /* keep gcc happy */ + offset = 0; #endif return false;