Commit fd04c8bc authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Avcapture/QTsound: use dialog_Fatal iso dialog_FatalWait

parent 61da4bf2
...@@ -282,7 +282,7 @@ static int Open(vlc_object_t *p_this) ...@@ -282,7 +282,7 @@ static int Open(vlc_object_t *p_this)
arrayByAddingObjectsFromArray:[AVCaptureDevice devicesWithMediaType:AVMediaTypeMuxed]] retain]; arrayByAddingObjectsFromArray:[AVCaptureDevice devicesWithMediaType:AVMediaTypeMuxed]] retain];
if ( [myVideoDevices count] == 0 ) if ( [myVideoDevices count] == 0 )
{ {
dialog_FatalWait(p_demux, _("No video devices found"), dialog_Fatal(p_demux, _("No video devices found"),
_("Your Mac does not seem to be equipped with a suitable video input device. " _("Your Mac does not seem to be equipped with a suitable video input device. "
"Please check your connectors and drivers.")); "Please check your connectors and drivers."));
msg_Err(p_demux, "Can't find any suitable video device"); msg_Err(p_demux, "Can't find any suitable video device");
...@@ -311,7 +311,7 @@ static int Open(vlc_object_t *p_this) ...@@ -311,7 +311,7 @@ static int Open(vlc_object_t *p_this)
} }
if ( !p_sys->device ) if ( !p_sys->device )
{ {
dialog_FatalWait(p_demux, _("No video devices found"), dialog_Fatal(p_demux, _("No video devices found"),
_("Your Mac does not seem to be equipped with a suitable input device. " _("Your Mac does not seem to be equipped with a suitable input device. "
"Please check your connectors and drivers.")); "Please check your connectors and drivers."));
msg_Err(p_demux, "Can't find any suitable video device"); msg_Err(p_demux, "Can't find any suitable video device");
......
...@@ -259,7 +259,7 @@ static int Open(vlc_object_t *p_this) ...@@ -259,7 +259,7 @@ static int Open(vlc_object_t *p_this)
myAudioDevices = [[[QTCaptureDevice inputDevicesWithMediaType:QTMediaTypeSound] myAudioDevices = [[[QTCaptureDevice inputDevicesWithMediaType:QTMediaTypeSound]
arrayByAddingObjectsFromArray:[QTCaptureDevice inputDevicesWithMediaType:QTMediaTypeMuxed]] retain]; arrayByAddingObjectsFromArray:[QTCaptureDevice inputDevicesWithMediaType:QTMediaTypeMuxed]] retain];
if([myAudioDevices count] == 0) { if([myAudioDevices count] == 0) {
dialog_FatalWait(p_demux, _("No Audio Input device found"), dialog_Fatal(p_demux, _("No Audio Input device found"),
_("Your Mac does not seem to be equipped with a suitable audio input device." _("Your Mac does not seem to be equipped with a suitable audio input device."
"Please check your connectors and drivers.")); "Please check your connectors and drivers."));
msg_Err(p_demux, "Can't find any Audio device"); msg_Err(p_demux, "Can't find any Audio device");
...@@ -290,7 +290,7 @@ static int Open(vlc_object_t *p_this) ...@@ -290,7 +290,7 @@ static int Open(vlc_object_t *p_this)
p_sys->audiodevice = [QTCaptureDevice defaultInputDeviceWithMediaType: QTMediaTypeSound]; p_sys->audiodevice = [QTCaptureDevice defaultInputDeviceWithMediaType: QTMediaTypeSound];
} }
if(!p_sys->audiodevice) { if(!p_sys->audiodevice) {
dialog_FatalWait(p_demux, _("No audio input device found"), dialog_Fatal(p_demux, _("No audio input device found"),
_("Your Mac does not seem to be equipped with a suitable audio input device." _("Your Mac does not seem to be equipped with a suitable audio input device."
"Please check your connectors and drivers.")); "Please check your connectors and drivers."));
msg_Err(p_demux, "Can't find any Audio device"); msg_Err(p_demux, "Can't find any Audio device");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment