From fc9ab1ccbdfc4ae8bdec962e4c9439c1fc59a55f Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 23 Oct 2007 14:02:15 +0000 Subject: 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 --- libs/ardour/audio_port.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'libs/ardour/audio_port.cc') 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(); -- cgit v1.2.3