]> git.webhop.me Git - bs-cst-neutrino-hd.git/commitdiff
reactivate correct input to make ofgwrite visible again
authorMarkham <markham001@gmx.de>
Sat, 26 May 2018 09:27:15 +0000 (11:27 +0200)
committerMarkham <markham001@gmx.de>
Sat, 26 May 2018 09:30:04 +0000 (11:30 +0200)
archive-patches/ofgwrite-reactivate-correct-input-to-make-ofgwrite-visible-again.patch [new file with mode: 0644]
make/applications.mk

diff --git a/archive-patches/ofgwrite-reactivate-correct-input-to-make-ofgwrite-visible-again.patch b/archive-patches/ofgwrite-reactivate-correct-input-to-make-ofgwrite-visible-again.patch
new file mode 100644 (file)
index 0000000..79946e7
--- /dev/null
@@ -0,0 +1,25 @@
+diff --git a/ofgwrite.c b/ofgwrite.c
+index 58c757e..9867591 100644
+--- a/ofgwrite.c
++++ b/ofgwrite.c
+@@ -592,6 +592,20 @@ int check_neutrino_stopped()
+       if (neutrino_found)
+               return 0;
++      else
++      {
++              /*
++                 Reactivate correct input to make ofgrite visible again.
++                 libstb-hal set input to "aux" when cVideo is deleted.
++              */
++              FILE *f;
++              f = fopen("/proc/stb/avs/0/input","w");
++              if (f != NULL)
++              {
++                      fputs("encoder", f);
++                      fclose(f);
++              }
++      }
+       return 1;
+ }
index 69e95aa091ef39698526d55117ec67a8a09cee3b..7d5b43692e23af1c6e954ac0d410302e49863c78 100755 (executable)
@@ -873,6 +873,7 @@ $(D)/ofgwrite: $(ARCHIVE)/ofgwrite-git-$(OFGWRITE_VER).tar.bz2 | $(TARGETPREFIX)
        $(UNTAR)/ofgwrite-git-$(OFGWRITE_VER).tar.bz2
        set -e; cd $(BUILD_TMP)/ofgwrite-git-$(OFGWRITE_VER); \
                $(PATCH)/ofgwrite.patch; \
+               $(PATCH)/ofgwrite-reactivate-correct-input-to-make-ofgwrite-visible-again.patch; \
                export CC=$(TARGET)-gcc && \
                export AR=$(TARGET)-ar && \
                $(BUILDENV); \