mirror of
https://github.com/Almamu/linux-wallpaperengine.git
synced 2025-07-14 05:12:25 +08:00
Prevent crashing on the PulseAudioPlayingDetector
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
This commit is contained in:
parent
7c39db8b4b
commit
21bcb7008f
@ -18,7 +18,7 @@ namespace WallpaperEngine::Audio::Drivers::Detectors
|
||||
// get processid
|
||||
const char* value = pa_proplist_gets (info->proplist, PA_PROP_APPLICATION_PROCESS_ID);
|
||||
|
||||
if (atoi (value) != getpid () && pa_cvolume_avg (&info->volume) != PA_VOLUME_MUTED)
|
||||
if (value && atoi (value) != getpid () && pa_cvolume_avg (&info->volume) != PA_VOLUME_MUTED)
|
||||
detector->setIsPlaying (true);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user