Skip to content
Snippets Groups Projects
Commit 9837db67 authored by Vincent Lucas's avatar Vincent Lucas
Browse files

Enables the media configuration dialog to listen to audio system and device...

Enables the media configuration dialog to listen to audio system and device changes even if the audio system combo box is disabled (via the AUDIO_SYSTEM_DISABLED_PROP portperty).
parent a0bef529
No related branches found
No related tags found
No related merge requests found
...@@ -1049,10 +1049,16 @@ public void propertyChange(PropertyChangeEvent event) ...@@ -1049,10 +1049,16 @@ public void propertyChange(PropertyChangeEvent event)
else if (DeviceSystem.PROP_DEVICES.equals(propertyName)) else if (DeviceSystem.PROP_DEVICES.equals(propertyName))
{ {
if (event.getSource() instanceof AudioSystem) if (event.getSource() instanceof AudioSystem)
{
// Try to switch to a new active audio system if we are
// currently using the "none" system.
switchFromNoneToActiveAudioSystem(
(CaptureDeviceInfo) event.getNewValue());
firePropertyChange( firePropertyChange(
PROP_AUDIO_SYSTEM_DEVICES, PROP_AUDIO_SYSTEM_DEVICES,
event.getOldValue(), event.getOldValue(),
event.getNewValue()); event.getNewValue());
}
} }
else if (PROP_VIDEO_FRAMERATE.equals(propertyName)) else if (PROP_VIDEO_FRAMERATE.equals(propertyName))
{ {
...@@ -1237,5 +1243,13 @@ && getAudioSystem().getLocatorProtocol().equals( ...@@ -1237,5 +1243,13 @@ && getAudioSystem().getLocatorProtocol().equals(
} }
} }
} }
// The device has been unplugged checks. It may be good to check if the
// current active audio system still have actvie devices. If not, then
// we will choose another audio system, or the "none" one if no audio
// system is available.
else
{
extractConfiguredAudioCaptureDevices();
}
} }
} }
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