commit 2ce68afc863072f995f90220e4f43039949c501d
Author: Vasiliy Glazov <v.glazov(a)javad.com>
Date: Tue Feb 5 09:03:29 2019 +0300
Added preload patch.
0001-Fix-libssr-glinject.so-preload-path.patch | 26 ++++++++++++++++++++++++++
simplescreenrecorder.spec | 8 ++++++--
2 files changed, 32 insertions(+), 2 deletions(-)
---
diff --git a/0001-Fix-libssr-glinject.so-preload-path.patch
b/0001-Fix-libssr-glinject.so-preload-path.patch
new file mode 100644
index 0000000..bf88959
--- /dev/null
+++ b/0001-Fix-libssr-glinject.so-preload-path.patch
@@ -0,0 +1,26 @@
+diff --git a/scripts/ssr-glinject b/scripts/ssr-glinject
+index 48be48d..b3f8b04 100755
+--- a/scripts/ssr-glinject
++++ b/scripts/ssr-glinject
+@@ -59,6 +59,6 @@ do
+ fi
+ done
+
+-echo "ssr-glinject: LD_PRELOAD = $LD_PRELOAD:libssr-glinject.so"
++echo "ssr-glinject: LD_PRELOAD =
$LD_PRELOAD:/usr/\$LIB/simplescreenrecorder/libssr-glinject.so"
+ echo "ssr-glinject: command = $@"
+-LD_PRELOAD="$LD_PRELOAD:libssr-glinject.so" "$@"
++LD_PRELOAD="$LD_PRELOAD:/usr/\$LIB/simplescreenrecorder/libssr-glinject.so"
"$@"
+diff --git a/src/AV/Input/GLInjectInput.cpp b/src/AV/Input/GLInjectInput.cpp
+index fd1cbda..2530c5f 100644
+--- a/src/AV/Input/GLInjectInput.cpp
++++ b/src/AV/Input/GLInjectInput.cpp
+@@ -97,7 +97,7 @@ void GLInjectInput::SetCapturing(bool capturing) {
+ bool GLInjectInput::LaunchApplication(const QString& channel, bool
relax_permissions, const QString& command, const QString& working_directory) {
+
+ // prepare command
+- QString full_command = "LD_PRELOAD=\"libssr-glinject.so\" ";
++ QString full_command =
"LD_PRELOAD=\"/usr/\\$LIB/simplescreenrecorder/libssr-glinject.so\"
";
+ full_command += "SSR_CHANNEL=\"" + ShellEscape(channel) + "\"
";
+ if(relax_permissions)
+ full_command += "SSR_STREAM_RELAX_PERMISSIONS=1 ";
diff --git a/simplescreenrecorder.spec b/simplescreenrecorder.spec
index febbe25..12b5101 100644
--- a/simplescreenrecorder.spec
+++ b/simplescreenrecorder.spec
@@ -1,12 +1,13 @@
%define shortname ssr
Name: simplescreenrecorder
Version: 0.3.11
-Release: 4%{?dist}
+Release: 5%{?dist}
Summary: Simple Screen Recorder is a screen recorder for Linux
License: GPLv3
URL:
http://www.maartenbaert.be/simplescreenrecorder/
Source0:
https://github.com/MaartenBaert/ssr/archive/%{version}.tar.gz
+Patch0: 0001-Fix-libssr-glinject.so-preload-path.patch
BuildRequires: gcc-c++
BuildRequires: desktop-file-utils
@@ -37,7 +38,7 @@ Despite the name, this program is actually quite complex.
It's 'simple' in the sense that it's easier to use than ffmpeg/avconv or
VLC
%prep
-%autosetup -n %{shortname}-%{version}
+%autosetup -p1 -n %{shortname}-%{version}
%build
@@ -98,6 +99,9 @@ fi
%{_datadir}/appdata/%{name}.appdata.xml
%changelog
+* Mon Feb 04 2019 Vasiliy N. Glazov <vascom2(a)gmail.com> - 0.3.11-5
+- Added preload patch
+
* Wed Nov 14 2018 Antonio Trande <sagitter(a)fedoraproject.org> - 0.3.11-4
- Rebuild for ffmpeg-3.4.5 on el7