# HG changeset patch # User ulion # Date 1194966497 0 # Node ID eb36c7846fbe6678b768ba9a4f2ae17f9d107030 # Parent cc8cb1bbd38efacb8da706f60870f951e44c50a3 Remove an useless conditional suggested by Emanuele Giaquinta. diff -r cc8cb1bbd38e -r eb36c7846fbe libao2/ao_macosx.c --- a/libao2/ao_macosx.c Tue Nov 13 14:29:02 2007 +0000 +++ b/libao2/ao_macosx.c Tue Nov 13 15:08:17 2007 +0000 @@ -445,7 +445,6 @@ } /* original analog output code */ - if (!aoIsCreated) { desc.componentType = kAudioUnitType_Output; desc.componentSubType = kAudioUnitSubType_DefaultOutput; desc.componentManufacturer = kAudioUnitManufacturer_Apple; @@ -470,7 +469,6 @@ ao_msg(MSGT_AO, MSGL_WARN, "Unable to initialize Output Unit component: [%4.4s]\n", (char *)&err); return CONTROL_FALSE; } - } size = sizeof(AudioStreamBasicDescription); err = AudioUnitSetProperty(ao->theOutputUnit, kAudioUnitProperty_StreamFormat, kAudioUnitScope_Input, 0, &inDesc, size);