From 5f219d925c85d78a8993a9b3167c322a5ad0f199 Mon Sep 17 00:00:00 2001 From: Warren Dukes Date: Mon, 1 Nov 2004 14:56:32 +0000 Subject: some minor tweaks, and a minor memory leak plugged git-svn-id: https://svn.musicpd.org/mpd/trunk@2445 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/audioOutput_ao.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/audioOutput_ao.c') diff --git a/src/audioOutput_ao.c b/src/audioOutput_ao.c index e904de322..e328c1bb4 100644 --- a/src/audioOutput_ao.c +++ b/src/audioOutput_ao.c @@ -212,10 +212,7 @@ static int audioOutputAo_play(AudioOutput * audioOutput, char * playChunk, int send; AoData * ad = (AoData *)audioOutput->data; - if(ad->device==NULL) { - ERROR("trying to play w/o the ao device being open!\n"); - return -1; - } + if(ad->device==NULL) return -1; while(size>0) { send = ad->writeSize > size ? size : ad->writeSize; -- cgit v1.2.3