Fix wrapper endprocess and indent
This commit is contained in:
@@ -28,7 +28,7 @@ function info() {
|
||||
function endprocess() {
|
||||
info "========================================[end ffmpeg $pid]"
|
||||
newline
|
||||
rm $stderrfile
|
||||
rm "$stderrfile"
|
||||
}
|
||||
|
||||
#########################
|
||||
@@ -44,10 +44,5 @@ info "========================================[start ffmpeg $pid]"
|
||||
info "MOVIE: $movie"
|
||||
info "HLS_ROOT: $hlsroot"
|
||||
info "DEFAULT_ARGS: ${defaultargs[*]}"
|
||||
info "ARGS: ${args[*]}"
|
||||
|
||||
declare -a args=(
|
||||
"${defaultargs[@]}"
|
||||
)
|
||||
|
||||
/var/packages/ffmpeg/target/bin/ffmpeg "${args[@]}" 2> $stderrfile
|
||||
/var/packages/ffmpeg/target/bin/ffmpeg "${defaultargs[@]}" 2> $stderrfile
|
||||
|
||||
@@ -19,16 +19,16 @@ function log() {
|
||||
echo "[$(date '+%Y-%m-%d %H:%M:%S')] [$1] $2" >> $logfile
|
||||
}
|
||||
function newline() {
|
||||
echo "" >> $logfile
|
||||
echo "" >> $logfile
|
||||
}
|
||||
function info() {
|
||||
log "INFO" "$1"
|
||||
log "INFO" "$1"
|
||||
}
|
||||
|
||||
function endprocess() {
|
||||
info "========================================[end gst $pid]"
|
||||
newline
|
||||
rm $stderrfile
|
||||
info "========================================[end gst $pid]"
|
||||
newline
|
||||
rm "$stderrfile"
|
||||
}
|
||||
|
||||
#########################
|
||||
|
||||
@@ -8,10 +8,9 @@ dsm_version=$(cat /etc.defaults/VERSION | grep productversion | sed 's/productve
|
||||
repo_base_url=https://github.com/AlexPresso/VideoStation-FFMPEG-Patcher
|
||||
vs_bin_path=/var/packages/VideoStation/target/bin
|
||||
cp_bin_path=/var/packages/CodecPack/target/bin
|
||||
declare -a cp_to_patch=("ffmpeg41" "ffmpeg27")
|
||||
ffmpeg_bin_path=/var/packages/ffmpeg/target/bin
|
||||
cp_to_patch=("ffmpeg41" "ffmpeg27")
|
||||
libsynovte_path=/var/packages/VideoStation/target/lib/libsynovte.so
|
||||
declare -a dependencies=("ffmpeg" "gstreamer")
|
||||
dependencies=("ffmpeg" "gstreamer")
|
||||
|
||||
###############################
|
||||
# UTILS
|
||||
|
||||
Reference in New Issue
Block a user