From e488378d42777b436c6a2708d9dff2def51a5271 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Fri, 2 Oct 2009 20:53:31 +0000 Subject: string_is_affirmative() fix for 3.0 git-svn-id: svn://localhost/ardour2/branches/3.0@5723 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/io_processor.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libs/ardour/io_processor.cc') diff --git a/libs/ardour/io_processor.cc b/libs/ardour/io_processor.cc index 505d33a1b0..1408cdcafb 100644 --- a/libs/ardour/io_processor.cc +++ b/libs/ardour/io_processor.cc @@ -155,11 +155,11 @@ IOProcessor::set_state (const XMLNode& node) Processor::set_state(node); if ((prop = node.property ("own-input")) != 0) { - _own_input = (prop->value() == "yes"); + _own_input = string_is_affirmative (prop->value()); } if ((prop = node.property ("own-output")) != 0) { - _own_output = (prop->value() == "yes"); + _own_output = string_is_affirmative (prop->value()); } /* don't attempt to set state for a proxied IO that we don't own */ -- cgit v1.2.3