Skip to content

Commit cf649af

Browse files
authored
Fix err code (#106)
* Fix multy-try errcode
1 parent 4803004 commit cf649af

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

motd.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
A new version of the wrapper was deployed (v2.5) fixing some issues with hardware transcoding.
2-
You can find the changelog here: https://github.com/AlexPresso/VideoStation-FFMPEG-Patcher/releases/tag/2.5
1+
A new version of the wrapper was deployed (v2.6) fixing an issue with offline transcoding.
2+
You can find the changelog here: https://github.com/AlexPresso/VideoStation-FFMPEG-Patcher/releases/tag/2.6
33

44
As always, please let me know of any issue you could have.

wrappers/ffmpeg.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ if [[ $errcode -eq 0 ]]; then
122122
endprocess
123123
fi
124124

125+
errcode=0
125126
info "Trying with VideoStation's ffmpeg with default args..."
126127
/var/packages/VideoStation/target/bin/ffmpeg.orig "$@" <&0 2>> $stderrfile &
127128
child=$!
@@ -131,6 +132,7 @@ if [[ $errcode -eq 0 ]]; then
131132
endprocess
132133
fi
133134

135+
errcode=0
134136
info "Trying with SC's ffmpeg and fixed args..."
135137
"/var/packages/${ffmpeg_version}/target/bin/ffmpeg" "${args[@]}" <&0 2>> $stderrfile &
136138
child=$!

0 commit comments

Comments
 (0)