modernize playback APIs

modernized video display, audio playback and vo postprocess APIs

THe APIs were already recently updated so modernize it by using bool
where the return value is semantically boolean value. Using TRUE/FALSE is
inherently ambiguous because it is not obvious from the prototype if
success is 0 or TRUE (1).
This commit is contained in:
Martin Pulec
2023-07-18 15:34:21 +02:00
parent baa0c661c1
commit 6780691b4e
58 changed files with 416 additions and 400 deletions

View File

@@ -1514,8 +1514,8 @@ int main(int argc, char *argv[])
audio_register_display_callbacks(uv.audio,
uv.display_device,
(void (*)(void *, const struct audio_frame *)) display_put_audio_frame,
(int (*)(void *, int, int, int)) display_reconfigure_audio,
(int (*)(void *, int, void *, size_t *)) display_ctl_property);
(bool (*)(void *, int, int, int)) display_reconfigure_audio,
(bool (*)(void *, int, void *, size_t *)) display_ctl_property);
}
if (opt.requested_capabilities != nullptr) {