Only show successful filter output. OOM might be in our way. - annna - Annna th… | |
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6… | |
Log | |
Files | |
Refs | |
Tags | |
README | |
--- | |
commit 7b761e77c02c23a0cc91aca7a16429100a514c70 | |
parent 1ba8236a2735c772777293c2227433fa383a6867 | |
Author: Annna Robert-Houdin <[email protected]> | |
Date: Wed, 19 May 2021 22:59:02 +0200 | |
Only show successful filter output. OOM might be in our way. | |
Diffstat: | |
M annna-message-common | 4 +++- | |
1 file changed, 3 insertions(+), 1 deletion(-) | |
--- | |
diff --git a/annna-message-common b/annna-message-common | |
@@ -669,9 +669,11 @@ case "${text}" in | |
[ ! -f "${inpath}" ] && exit 0 | |
+ [ -f "${outpath}" -a ! -s "${outpath}" ] && rm "${outpath}" | |
+ | |
ffmpeg-effect "${filter}" "${inpath}" "${outpath}" | |
- if [ -f "${outpath}" ]; | |
+ if [ -s "${outpath}" ]; | |
then | |
annna-say -c "${channel}" "${user}, gopher://bitreich.… | |
fi |