@@ -207,6 +207,7 @@ patch() {
207207 chmod u+s " $vs_path /bin/$filename "
208208
209209 sed -i -e " s/@package_name@/VideoStation/" " $vs_path /bin/$filename "
210+ sed -i -e " s/@ffmpeg_version@/ffmpeg$ffmpegversion /" " $vs_path /bin/$filename "
210211 fi
211212 done
212213
@@ -224,6 +225,7 @@ patch() {
224225 chmod u+s " $cp_bin_path /$filename "
225226
226227 sed -i -e " s/@package_name@/CodecPack/" " $cp_bin_path /$filename "
228+ sed -i -e " s/@ffmpeg_version@/ffmpeg$ffmpegversion /" " $cp_bin_path /$filename "
227229 fi
228230 done
229231
@@ -247,13 +249,6 @@ patch() {
247249 download " Gstreamer library: $lib " " $repo_base_url /$branch /libs/$lib " " $gst_lib_path /$lib "
248250 done
249251 fi
250-
251- mkdir " $cp_base_path /patch"
252- download " CodecPack's patch_config.sh" " $repo_base_url /$branch /utils/patch_config.sh" " $cp_base_path /patch/patch_config.sh"
253- download " CodecPack's patch_utils.sh" " $repo_base_url /$branch /utils/patch_utils.sh" " $cp_base_path /patch/patch_utils.sh"
254-
255- info " Setting CodecPack's ffmpeg version to: ffmpeg$ffmpegversion "
256- sed -i -e " s/@ffmpeg_version@/ffmpeg$ffmpegversion /" " $cp_base_path /patch/patch_config.sh"
257252 fi
258253
259254 if [[ -f " $vs_path /bin/gst-launch-1.0" ]]; then
@@ -283,13 +278,6 @@ patch() {
283278 cp -n " $cp_path /etc/gstomx.conf" " $vs_path /etc/gstomx.conf"
284279 fi
285280
286- mkdir " $vs_base_path /patch"
287- download " VideoStation's patch_config.sh" " $repo_base_url /$branch /utils/patch_config.sh" " $vs_base_path /patch/patch_config.sh"
288- download " VideoStation's patch_utils.sh" " $repo_base_url /$branch /utils/patch_utils.sh" " $vs_base_path /patch/patch_utils.sh"
289-
290- info " Setting ffmpeg version to: ffmpeg$ffmpegversion "
291- sed -i -e " s/@ffmpeg_version@/ffmpeg$ffmpegversion /" " $vs_base_path /patch/patch_config.sh"
292-
293281 info " Saving current libsynovte.so as libsynovte.so.orig"
294282 cp -n " $libsynovte_path " " $libsynovte_path .orig"
295283 chown VideoStation:VideoStation " $libsynovte_path .orig"
@@ -336,9 +324,6 @@ unpatch() {
336324 rm -rf " $cp_path /lib/gstreamer/patch"
337325 rm -rf " $cp_path /lib/gstreamer/gstreamer-1.0/patch"
338326 fi
339-
340- info " Remove CodecPack's patch directory"
341- rm -rf " $cp_base_path /patch"
342327 fi
343328
344329 if [[ -f " $vs_path /bin/gst-launch-1.0" ]]; then
@@ -354,9 +339,6 @@ unpatch() {
354339 fi
355340 fi
356341
357- info " Remove VideoStation's patch directory."
358- rm -rf " $vs_base_path /patch"
359-
360342 restart_packages
361343 clean
362344
0 commit comments