diff options
author | Carl Hetherington <carl@carlh.net> | 2007-10-23 14:02:15 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2007-10-23 14:02:15 +0000 |
commit | fc9ab1ccbdfc4ae8bdec962e4c9439c1fc59a55f (patch) | |
tree | 1b9436b1519761692639212ed25aca63dbd97859 /libs/ardour/ardour/audio_port.h | |
parent | 4d33fbac628a695b5c63f7dae1ddaad9e1a5896d (diff) |
Re-work Port construction slightly so that _flags is always initialised before reset() is called. Otherwise a decision is made based on an uninitialised variable (as spotted by valgrind)
git-svn-id: svn://localhost/ardour2/trunk@2568 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/ardour/audio_port.h')
-rw-r--r-- | libs/ardour/ardour/audio_port.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/ardour/ardour/audio_port.h b/libs/ardour/ardour/audio_port.h index 035ac9ed5f..e412e09bc4 100644 --- a/libs/ardour/ardour/audio_port.h +++ b/libs/ardour/ardour/audio_port.h @@ -70,8 +70,8 @@ class AudioPort : public virtual Port { protected: friend class AudioEngine; - AudioPort (); // data buffer comes from elsewhere (e.g. JACK) - AudioPort (nframes_t); // data buffer owned by ardour + AudioPort (Flags); // data buffer comes from elsewhere (e.g. JACK) + AudioPort (Flags, nframes_t); // data buffer owned by ardour void reset (); /* engine isn't supposed to access below here */ |