ChrisAJS / lgx2userspace

This is a Linux userspace driver for the AverMedia LGX2 (GC551) and AverMedia LGX (GC550)
MIT License
26 stars 5 forks source link

LGX (GC550) isn't happy when restarting application after initial bootstrap #11

Closed ChrisAJS closed 2 years ago

ChrisAJS commented 2 years ago

Might be worth attempting to detect whether device is bootstrapped before bootstrapping?

Strategy could involve attempting a read with a rather low timeout; if the operation times out, we need to bootstrap, otherwise we're good to go?

The lowtech solution is to close the application and unplug and plug in the USB cable and restart the application.

Currently the audio comes through ok, but the video frames don't seem to update (the device is sending the same frame over and over or no start/end frame identifiers? Not investigated...)

ChrisAJS commented 2 years ago

The strategy of reading a frame and detecting a timeout works really well, it's in the gtk-window branch which will be pulled in soon!