Skip to content
Snippets Groups Projects
Commit 084e41af authored by Damian Minkov's avatar Damian Minkov
Browse files

Adds hotplug to portaudio wmme host api, also fixes a NPE that can prevent device change updates.

parent 342e1d4c
No related branches found
No related tags found
No related merge requests found
......@@ -129,7 +129,10 @@ protected void doInitialize()
// otherwise a call currently using this device will fail.
for(int i = 0; devices !=null && i < devices.size() && !found; ++i)
{
if(devices.get(i).getUID().equals(deviceUID))
// using identifier (name or uid, cause there can be some
// uid that are null)
String id = devices.get(i).getIdentifier();
if(id.equals(deviceUID) || id.equals(name))
{
cdi = devices.get(i);
found = true;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment