channels/audin: Request correct media type in audin channel on Mac
This commit is contained in:
parent
03ced3d8f0
commit
a5fce9e64b
@ -421,14 +421,14 @@ UINT freerdp_audin_client_subsystem_entry(PFREERDP_AUDIN_DEVICE_ENTRY_POINTS pEn
|
|||||||
}
|
}
|
||||||
|
|
||||||
AVAuthorizationStatus status =
|
AVAuthorizationStatus status =
|
||||||
[AVCaptureDevice authorizationStatusForMediaType:AVMediaTypeVideo];
|
[AVCaptureDevice authorizationStatusForMediaType:AVMediaTypeAudio];
|
||||||
switch (status)
|
switch (status)
|
||||||
{
|
{
|
||||||
case AVAuthorizationStatusAuthorized:
|
case AVAuthorizationStatusAuthorized:
|
||||||
mac->isAuthorized = TRUE;
|
mac->isAuthorized = TRUE;
|
||||||
break;
|
break;
|
||||||
case AVAuthorizationStatusNotDetermined:
|
case AVAuthorizationStatusNotDetermined:
|
||||||
[AVCaptureDevice requestAccessForMediaType:AVMediaTypeVideo
|
[AVCaptureDevice requestAccessForMediaType:AVMediaTypeAudio
|
||||||
completionHandler:^(BOOL granted) {
|
completionHandler:^(BOOL granted) {
|
||||||
if (granted == YES)
|
if (granted == YES)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user