Skip to content
Snippets Groups Projects
Commit 0186dd7a authored by Boris Grozev's avatar Boris Grozev
Browse files

Makes MediaServiceImpl#getDefaultDevice return non-null even if no formats are...

Makes MediaServiceImpl#getDefaultDevice return non-null even if no formats are enabled for the device. Updates some of it's usages accordingly. This fixes a problem with SIP audio calls failing when all video formats are disabled.
parent 5e4d6116
No related branches found
No related tags found
No related merge requests found
...@@ -419,15 +419,6 @@ public MediaDevice getDefaultDevice( ...@@ -419,15 +419,6 @@ public MediaDevice getDefaultDevice(
} }
} }
/*
* Don't use the device in case the user has disabled all codecs for
* that kind of media.
*/
if ((defaultDevice != null)
&& (defaultDevice.getSupportedFormats().isEmpty()))
{
defaultDevice = null;
}
return defaultDevice; return defaultDevice;
} }
...@@ -1283,6 +1274,8 @@ public MediaDevice getMediaDeviceForPartialDesktopStreaming( ...@@ -1283,6 +1274,8 @@ public MediaDevice getMediaDeviceForPartialDesktopStreaming(
*/ */
public boolean isPartialStreaming(MediaDevice mediaDevice) public boolean isPartialStreaming(MediaDevice mediaDevice)
{ {
if(mediaDevice == null)
return false;
MediaDeviceImpl dev = (MediaDeviceImpl)mediaDevice; MediaDeviceImpl dev = (MediaDeviceImpl)mediaDevice;
CaptureDeviceInfo devInfo = dev.getCaptureDeviceInfo(); CaptureDeviceInfo devInfo = dev.getCaptureDeviceInfo();
......
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