MT#56493 update return type to bool

Change-Id: I37027568255d54cdfcdb324d971c8836af87b25e
pull/1611/head
Richard Fuchs 3 years ago
parent a87510d372
commit 2a2679d7a0

@ -20,7 +20,7 @@ int mp3_bitrate;
static int output_shutdown(output_t *output); static bool output_shutdown(output_t *output);
@ -293,17 +293,17 @@ err:
} }
static int output_shutdown(output_t *output) { static bool output_shutdown(output_t *output) {
if (!output) if (!output)
return 0; return false;
if (!output->fmtctx) if (!output->fmtctx)
return 0; return false;
int ret = 0; bool ret = false;
if (output->fmtctx->pb) { if (output->fmtctx->pb) {
av_write_trailer(output->fmtctx); av_write_trailer(output->fmtctx);
avio_closep(&output->fmtctx->pb); avio_closep(&output->fmtctx->pb);
ret = 1; ret = true;
if (output_chmod) if (output_chmod)
if (chmod(output->filename, output_chmod)) if (chmod(output->filename, output_chmod))
ilog(LOG_WARN, "Failed to change file mode of '%s%s%s': %s", ilog(LOG_WARN, "Failed to change file mode of '%s%s%s': %s",

Loading…
Cancel
Save