From b9db899e740a56309edd88494cd012652090253e Mon Sep 17 00:00:00 2001 From: AlexPresso Date: Mon, 16 May 2022 17:20:24 +0200 Subject: [PATCH] Continue new gstreamer patch --- gst-wrapper.sh | 4 ++-- patcher.sh | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/gst-wrapper.sh b/gst-wrapper.sh index a361694..0c203e9 100644 --- a/gst-wrapper.sh +++ b/gst-wrapper.sh @@ -9,7 +9,7 @@ defaultargs=($@) hlsslice=${@: -1} hlsroot=${hlsslice::-14} stderrfile="/tmp/gstlaunch-$pid.stderr" -logfile="/tmp/ffmpeg.log" +logfile="/tmp/gstreamer.log" ######################### # UTILS @@ -41,4 +41,4 @@ newline info "========================================[start gst $pid]" info "GST_ARGS: ${defaultargs[*]}" -/var/packages/CodecPack/target/pack/bin/gst-launch-1.0.orig "${defaultargs[@]}" 2> $stderrfile +/var/packages/gstreamer/target/bin/gst-launch-1.0 "${defaultargs[@]}" 2> $stderrfile diff --git a/patcher.sh b/patcher.sh index de8d195..768e520 100755 --- a/patcher.sh +++ b/patcher.sh @@ -80,6 +80,9 @@ function patch() { ln -s -f "$vs_bin_path/ffmpeg" "$cp_bin_path/$filename" fi done + + mv -n "$cp_bin_path/gst-launch-1.0" "$cp_bin_path/gst-launch-1.0.orig" + ln -s -f /var/packages/gstreamer/target/bin/gst-launch-1.0 "$cp_bin_path/gst-launch-1.0" fi info "Saving current libsynovte.so as libsynovte.so.orig" @@ -105,7 +108,7 @@ function unpatch() { mv -f "$vs_bin_path/ffmpeg.orig" "$vs_bin_path/ffmpeg" if [[ -d $cp_bin_path ]]; then - find $cp_bin_path -type f -name "ffmpeg*.orig" | while read filename + find $cp_bin_path -type f -name "*.orig" | while read filename do info "Restoring CodecPack's $filename" mv -T -f "$filename" "${filename::-5}"