From 8bd666f27e2b39fc1f935a05c5397d39fcc85fa7 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 c1049db9c6f1dd88feb61ede8a801da758d398fd. --- 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; }