Coverity: CID 400005: Division or modulo by zero
authorNelson Ferreira <nelson.ferreira@ieee.org>
Wed, 7 Mar 2012 14:37:39 +0000 (09:37 -0500)
committerNelson Ferreira <nelson.ferreira@ieee.org>
Wed, 7 Mar 2012 14:37:39 +0000 (09:37 -0500)
* src/media/sound-oss.c (sound_oss_play): Fix gross condition
error of previous change

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
src/media/sound-oss.c

index d1e6488..253a391 100644 (file)
@@ -465,7 +465,7 @@ sound_oss_play(audio_job_t aj)
                SXE_MUTEX_UNLOCK(&sod->mtx);
                return 0;
        }
-       if(sosd->channels!=0) {
+       if(sosd->channels==0) {
                message(GETTEXT("audio-oss: "
                                "No channels."));
                sound_oss_close_device(sod);