From: "Dabrien 'Dabe' Murphy" <dabe@dabe.com>
To: ffmpeg-devel@ffmpeg.org
Cc: Dabrien 'Dabe' Murphy <dabe@dabe.com>
Subject: [FFmpeg-devel] [PATCH 1/1] fftools/ffmpeg_opt: Exit with non-zero status when destination exists
Date: Mon, 15 Jul 2024 08:56:22 -0400
Message-ID: <d9391147-7ab5-4047-fc63-ae2c952b22e1@dabe.com> (raw)
In-Reply-To: <20240712232334.87395-2-dabe@dabe.com>
---
fftools/ffmpeg_opt.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/fftools/ffmpeg_opt.c b/fftools/ffmpeg_opt.c
index 2c201c74b2..dddf7c6475 100644
--- a/fftools/ffmpeg_opt.c
+++ b/fftools/ffmpeg_opt.c
@@ -604,13 +604,13 @@ int assert_file_overwrite(const char *filename)
signal(SIGINT, SIG_DFL);
if (!read_yesno()) {
av_log(NULL, AV_LOG_FATAL, "Not overwriting - exiting\n");
- return AVERROR_EXIT;
+ return AVERROR(EEXIST);
}
term_init();
}
else {
av_log(NULL, AV_LOG_FATAL, "File '%s' already exists. Exiting.\n", filename);
- return AVERROR_EXIT;
+ return AVERROR(EEXIST);
}
}
}
-- 2.45.2
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
next prev parent reply other threads:[~2024-07-15 12:56 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20240712232334.87395-1-dabe@dabe.com>
2024-07-15 12:55 ` [FFmpeg-devel] [PATCH 0/1] Make "File exists" exit w/ non-zero status Dabrien 'Dabe' Murphy
[not found] ` <20240712232334.87395-2-dabe@dabe.com>
2024-07-15 12:56 ` Dabrien 'Dabe' Murphy [this message]
2024-07-15 13:25 ` [FFmpeg-devel] [PATCH 1/1] fftools/ffmpeg_opt: Exit with non-zero status when destination exists Gyan Doshi
2024-07-16 4:10 ` Marth64
2024-07-16 5:07 ` Gyan Doshi
2025-02-05 16:14 ` Marth64
2025-02-06 3:59 ` Leo Izen
2025-02-06 18:21 ` Marth64
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=d9391147-7ab5-4047-fc63-ae2c952b22e1@dabe.com \
--to=dabe@dabe.com \
--cc=ffmpeg-devel@ffmpeg.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
This inbox may be cloned and mirrored by anyone:
git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
ffmpegdev@gitmailbox.com
public-inbox-index ffmpegdev
Example config snippet for mirrors.
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git