Open jwittkoski opened 5 years ago
I've also observed the same behavior in #4. What I ended up doing was to patch USBif.cpp to add an error callback function if any USB errors are detected. This way, when the USB cable is unplugged, the application can gracefully shutdown, and close the video context properly. I'm not sure how MythTV will deal with that, but if it will restart the application than this could be a good solution.
If we think it's something that would be useful, I could put together a PR for this. In my application, it has been working very well to handle errors. This might also avoid the situation you encountered in #8 as well.
I definitely think that cleanly exiting in this situation is a better outcome. It's easier to detect a failure has occurred and address it.
@jpoet would you be interested in including @stevenviola's patch file with the other patches?
Yes, absolutely.
I will try to take a look at Steven's work within the next couple of days.
jwittkoski, when you get a chance, please let me know if the latest version fixes this.
getting this error also still, why and how to solve thx
My device was plugged in so I'm not sure how it got in this state, but the messages continue indefinitely and a CTRL-C does NOT stop the process.