diff options
author | Chris Robinson <[email protected]> | 2009-12-28 13:08:15 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2009-12-28 13:08:15 -0800 |
commit | 69ab93a8240d6272c3fbd86e65b7baca516ec8de (patch) | |
tree | 6d257345dc5eee5dd6a8324ce774aa18b7890e50 /Alc/pulseaudio.c | |
parent | 179b660eee8cfc958057cb237019a939c3361fbb (diff) |
Add a function to check if a config option is set to a non-empty value
Diffstat (limited to 'Alc/pulseaudio.c')
-rw-r--r-- | Alc/pulseaudio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Alc/pulseaudio.c b/Alc/pulseaudio.c index a85e4b47..9faead99 100644 --- a/Alc/pulseaudio.c +++ b/Alc/pulseaudio.c @@ -577,7 +577,7 @@ static ALCboolean pulse_reset_playback(ALCdevice *device) //{{{ ppa_threaded_mainloop_lock(data->loop); - if(*(GetConfigValue(NULL, "format", "")) == '\0') + if(!ConfigValueExists(NULL, "format")) { pa_operation *o; struct { @@ -600,7 +600,7 @@ static ALCboolean pulse_reset_playback(ALCdevice *device) //{{{ free(server_data.name); } } - if(*(GetConfigValue(NULL, "frequency", "")) == '\0') + if(!ConfigValueExists(NULL, "frequency")) flags |= PA_STREAM_FIX_RATE; data->frame_size = aluBytesFromFormat(device->Format) * |