diff options
author | François Andriot <francois.andriot@free.fr> | 2021-05-11 19:38:21 +0200 |
---|---|---|
committer | François Andriot <francois.andriot@free.fr> | 2021-05-11 19:38:21 +0200 |
commit | 97da3a13f23d4b8658ae7b163cd04c72e949ca79 (patch) | |
tree | 2854420839a23c5dbeb531450129f8ee7c5d1d16 /tderadio3/plugins/alsa-sound | |
parent | 633903d4e3b7d1b517abe97572c65061bf2b07e4 (diff) | |
download | tderadio-97da3a13f23d4b8658ae7b163cd04c72e949ca79.tar.gz tderadio-97da3a13f23d4b8658ae7b163cd04c72e949ca79.zip |
Fix ftbfs on Fedora 34
error: ordered comparison of pointer with integer zero (‘snd_mixer_t*’ {aka ‘_snd_mixer*’} and ‘int’)
Signed-off-by: François Andriot <francois.andriot@free.fr>
Diffstat (limited to 'tderadio3/plugins/alsa-sound')
-rw-r--r-- | tderadio3/plugins/alsa-sound/alsa-sound.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tderadio3/plugins/alsa-sound/alsa-sound.cpp b/tderadio3/plugins/alsa-sound/alsa-sound.cpp index b37bdda..746eacf 100644 --- a/tderadio3/plugins/alsa-sound/alsa-sound.cpp +++ b/tderadio3/plugins/alsa-sound/alsa-sound.cpp @@ -908,7 +908,7 @@ static int mixer_dummy_callback(snd_mixer_t *, unsigned int /*mask*/, snd_mixer_ bool AlsaSoundDevice::openMixerDevice(snd_mixer_t *&mixer_handle, int card, bool reopen, TQTimer *timer, int timer_latency) { if (reopen) { - if (mixer_handle >= 0) + if (mixer_handle != NULL) closeMixerDevice(mixer_handle, card, SoundStreamID::InvalidID, NULL, /* force = */ true, timer); else return true; |