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/audio_port.cc | |
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/audio_port.cc')
-rw-r--r-- | libs/ardour/audio_port.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libs/ardour/audio_port.cc b/libs/ardour/audio_port.cc index aa8b363134..2e3682fe3b 100644 --- a/libs/ardour/audio_port.cc +++ b/libs/ardour/audio_port.cc @@ -26,15 +26,15 @@ using namespace std; nframes_t AudioPort::_short_over_length = 2; nframes_t AudioPort::_long_over_length = 10; -AudioPort::AudioPort() - : _buffer (0) +AudioPort::AudioPort(Flags flags) + : Port (flags), _buffer (0) { _type = DataType::AUDIO; reset(); } -AudioPort::AudioPort(nframes_t nframes) - : _buffer (nframes) +AudioPort::AudioPort(Flags flags, nframes_t nframes) + : Port (flags), _buffer (nframes) { _type = DataType::AUDIO; reset(); |