diff options
author | Chris Robinson <[email protected]> | 2009-08-27 02:53:09 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2009-08-27 02:53:09 -0700 |
commit | 6bb14e45cee9d8d7da37675cc6933146f7a95155 (patch) | |
tree | 238b8354671a87e00867af28424a4bf23b813e1c /Alc/pulseaudio.c | |
parent | 45dc8048193162edbb886921cfcf2955c5232626 (diff) |
Store a copy of the device name in the device
Diffstat (limited to 'Alc/pulseaudio.c')
-rw-r--r-- | Alc/pulseaudio.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Alc/pulseaudio.c b/Alc/pulseaudio.c index 4bce7379..4f39afb5 100644 --- a/Alc/pulseaudio.c +++ b/Alc/pulseaudio.c @@ -216,9 +216,6 @@ static ALCboolean pulse_open(ALCdevice *device, const ALCchar *device_name) //{{ else data->context_name = "OpenAL Soft"; - device->ExtraData = data; - device->szDeviceName = device_name; - if(!(data->loop = ppa_threaded_mainloop_new())) { AL_PRINT("pa_threaded_mainloop_new() failed!\n"); @@ -275,6 +272,9 @@ static ALCboolean pulse_open(ALCdevice *device, const ALCchar *device_name) //{{ ppa_threaded_mainloop_accept(data->loop); } + device->szDeviceName = strdup(device_name); + device->ExtraData = data; + ppa_threaded_mainloop_unlock(data->loop); return ALC_TRUE; |