mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-26 23:13:16 +02:00
Revert "this break play video ->try to fix set blank video"
This reverts commit c1049db9c6
.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user