diff options
author | Warren Dukes <warren.dukes@gmail.com> | 2004-11-01 14:56:32 +0000 |
---|---|---|
committer | Warren Dukes <warren.dukes@gmail.com> | 2004-11-01 14:56:32 +0000 |
commit | 5f219d925c85d78a8993a9b3167c322a5ad0f199 (patch) | |
tree | 115f8f1f7c1954599faf60b505a33362c7777049 /src/audioOutput_ao.c | |
parent | 42e147a1f851db32398b9a2dfc77760a52f473ea (diff) | |
download | mpd-5f219d925c85d78a8993a9b3167c322a5ad0f199.tar.gz mpd-5f219d925c85d78a8993a9b3167c322a5ad0f199.tar.xz mpd-5f219d925c85d78a8993a9b3167c322a5ad0f199.zip |
some minor tweaks, and a minor memory leak plugged
git-svn-id: https://svn.musicpd.org/mpd/trunk@2445 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r-- | src/audioOutput_ao.c | 5 |
1 files changed, 1 insertions, 4 deletions
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; |