From d0a700ee7b11c7e8d50a1742ca587ecff0a9d78b Mon Sep 17 00:00:00 2001 From: Jacek Jendrzej Date: Fri, 18 May 2018 11:45:08 +0200 Subject: [PATCH] Revert "this break play video ->try to fix set blank video" This reverts commit 6c9570d333e695095876c9132c71cfa4ee80c207. Origin commit data ------------------ Branch: master Commit: https://github.com/neutrino-images/ni-libstb-hal/commit/8bd666f27e2b39fc1f935a05c5397d39fcc85fa7 Author: Jacek Jendrzej Date: 2018-05-18 (Fri, 18 May 2018) ------------------ This commit was generated by Migit --- libarmbox/video.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/libarmbox/video.cpp b/libarmbox/video.cpp index b1ff4ed..3b1f244 100644 --- a/libarmbox/video.cpp +++ b/libarmbox/video.cpp @@ -345,10 +345,6 @@ retry: } lt_info("#%d: %s cannot open %s: %m, retries %d\n", devnum, __func__, VDEV[devnum], n); } - if ( fd >= 0 && (ioctl(fd,VIDEO_SET_BLANK, false) < 0)){ - perror("VIDEO SET BLANK: "); - } - playstate = VIDEO_STOPPED; } @@ -357,12 +353,8 @@ void cVideo::closeDevice(void) lt_debug("%s\n", __func__); /* looks like sometimes close is unhappy about non-empty buffers */ // Start(); - if (fd >= 0){ - if ((ioctl(fd,VIDEO_SET_BLANK, true) < 0)){ - perror("VIDEO SET BLANK: "); - } + if (fd >= 0) close(fd); - } fd = -1; playstate = VIDEO_STOPPED; }