This commit is contained in:
Jacek Jendrzej
2018-05-17 18:51:02 +02:00
parent 3cf039c72b
commit c1049db9c6

View File

@@ -345,6 +345,10 @@ retry:
} }
lt_info("#%d: %s cannot open %s: %m, retries %d\n", devnum, __func__, VDEV[devnum], n); 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; playstate = VIDEO_STOPPED;
} }
@@ -353,8 +357,12 @@ void cVideo::closeDevice(void)
lt_debug("%s\n", __func__); lt_debug("%s\n", __func__);
/* looks like sometimes close is unhappy about non-empty buffers */ /* looks like sometimes close is unhappy about non-empty buffers */
// Start(); // Start();
if (fd >= 0) if (fd >= 0){
if ((ioctl(fd,VIDEO_SET_BLANK, true) < 0)){
perror("VIDEO SET BLANK: ");
}
close(fd); close(fd);
}
fd = -1; fd = -1;
playstate = VIDEO_STOPPED; playstate = VIDEO_STOPPED;
} }