eliminate excessive journal errors
When the USB gadget is shut down, the application needs to avoid writes
to it in order to avoid lots of errors in the kernel log. Close the file
handle and re-open it when timings are detected again. Also, prevent
logging the failed timings query more than once.
Change-Id: Ic126828fe26ef44ebb0a5cb65cc47b23bb84f7f3
Signed-off-by: Eddie James <eajames@linux.ibm.com>
diff --git a/ikvm_video.hpp b/ikvm_video.hpp
index faaa57d..fb8c5da 100644
--- a/ikvm_video.hpp
+++ b/ikvm_video.hpp
@@ -129,6 +129,8 @@
* the open operation
*/
bool resizeAfterOpen;
+ /* @brief Indicates whether or not timings query was last sucessful */
+ bool timingsError;
/* @brief File descriptor for the V4L2 video device */
int fd;
/* @brief Desired frame rate of video stream in frames per second */