1
mirror of https://github.com/mpv-player/mpv synced 2024-11-14 22:48:35 +01:00

ao_coreaudio: return errors instead false in init functions

This commit is contained in:
Stefano Pigozzi 2013-07-04 18:51:46 +02:00
parent b41fcc1e2c
commit e61102e637

View File

@ -350,7 +350,7 @@ static int init(struct ao *ao, char *params)
return init_lpcm(ao, asbd);
coreaudio_error:
return CONTROL_FALSE;
return CONTROL_ERROR;
}
static int init_lpcm(struct ao *ao, AudioStreamBasicDescription asbd)
@ -436,7 +436,7 @@ coreaudio_error_audiounit:
coreaudio_error_component:
AudioComponentInstanceDispose(p->audio_unit);
coreaudio_error:
return CONTROL_FALSE;
return CONTROL_ERROR;
}
static int init_digital(struct ao *ao, AudioStreamBasicDescription asbd)
@ -574,7 +574,7 @@ static int init_digital(struct ao *ao, AudioStreamBasicDescription asbd)
coreaudio_error:
err = ca_unlock_device(p->device, &d->hog_pid);
CHECK_CA_WARN("can't release hog mode");
return CONTROL_FALSE;
return CONTROL_ERROR;
}
static int play(struct ao *ao, void *output_samples, int num_bytes, int flags)