Skip to content
Snippets Groups Projects
Commit c1d66488 authored by Lyubomir Marinov's avatar Lyubomir Marinov
Browse files

Fixes a failure to start the audio capture in calls until the Audio Preferences are opened.

parent 4ad62bd0
Branches
Tags
No related merge requests found
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
* *
* @author Emil Ivov * @author Emil Ivov
* @author Ken Larson * @author Ken Larson
* @author Lubomir Marinov * @author Lyubomir Marinov
*/ */
public class ProcessorUtility public class ProcessorUtility
implements ControllerListener implements ControllerListener
...@@ -140,15 +140,22 @@ else if (state == Processor.Realized) ...@@ -140,15 +140,22 @@ else if (state == Processor.Realized)
} }
catch (InterruptedException ie) catch (InterruptedException ie)
{ {
logger logger.warn(
.warn( "Interrupted while waiting on Processor "
"Failed while waiting on Processor "
+ processor + processor
+ " for state " + " for state "
+ state, + state,
ie); ie);
processor.removeControllerListener(this); /*
return false; * XXX It is not really clear what we should do. It seems
* that an InterruptedException may be thrown and the
* Processor will still work fine. Consequently, we cannot
* fail here. Besides, if the Processor fails, it will tell
* us with a ControllerEvent anyway and we will get out of
* the loop.
*/
// processor.removeControllerListener(this);
// return false;
} }
} }
} }
......
...@@ -558,7 +558,7 @@ public String toString() ...@@ -558,7 +558,7 @@ public String toString()
*/ */
private static void waitForPaOpenStream() private static void waitForPaOpenStream()
{ {
boolean interrupted = true; boolean interrupted = false;
while (paOpenStream > 0) while (paOpenStream > 0)
{ {
...@@ -581,7 +581,7 @@ private static void waitForPaOpenStream() ...@@ -581,7 +581,7 @@ private static void waitForPaOpenStream()
*/ */
private static void waitForPaUpdateAvailableDeviceList() private static void waitForPaUpdateAvailableDeviceList()
{ {
boolean interrupted = true; boolean interrupted = false;
while (paUpdateAvailableDeviceList > 0) while (paUpdateAvailableDeviceList > 0)
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment