Browse Source

macosx: Access device isInUseByAnotherApplication with dot notation

Signed-off-by: Claudio Cambra <developer@claudiocambra.com>
pull/162/head
Claudio Cambra 3 years ago
committed by Jean-Baptiste Kempf
parent
commit
d1608f318d
  1. 2
      modules/access/avaudiocapture.m
  2. 2
      modules/access/avcapture.m

2
modules/access/avaudiocapture.m

@ -216,7 +216,7 @@ static int Open(vlc_object_t *p_this)
return VLC_EGENERIC;
}
if ([device isInUseByAnotherApplication]) {
if (device.isInUseByAnotherApplication) {
msg_Err(p_demux, "Capture device is exclusively in use by another application");
return VLC_EGENERIC;
}

2
modules/access/avcapture.m

@ -402,7 +402,7 @@ static int Control(demux_t *p_demux, int i_query, va_list args)
AVCaptureDevice *device = _device;
if ( [device isInUseByAnotherApplication] == YES )
if ( device.isInUseByAnotherApplication == YES )
{
msg_Err(_demux, "default capture device is exclusively in use by another application");
return nil;

Loading…
Cancel
Save