kmix mixer_backend.cpp

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
I looked yesterday in kmix code and I see this, which I think is a bit
wrong, or I do not understand why close() is called even if open fails - we
just want to know if mixer is valid.

bool Mixer_Backend::isValid() {
        bool valid = false;
        int ret = open();
        if ( ret == 0  && m_mixDevices.count() > 0) {
          valid = true;
        }
        close();
        return valid;
}

regards


---------------------------------------------------------------------
To unsubscribe, e-mail: trinity-devel-unsubscribe@xxxxxxxxxxxxxxxxxxxxxxxxxx
For additional commands, e-mail: trinity-devel-help@xxxxxxxxxxxxxxxxxxxxxxxxxx
Read list messages on the web archive: http://trinity-devel.pearsoncomputing.net/
Please remember not to top-post: http://trinity.pearsoncomputing.net/mailing_lists/#top-posting




[Index of Archives]     [Trinity Users]     [Linux Sound]     [ALSA Users]     [ALSA Devel]     [Linux Audio Users]     [Linux Media]     [KDE]     [Kernel]     [Gimp]     [Yosemite News]     [Linux Media]     [Trinity Desktop Environment]

  Powered by Linux