Need to support auto-detect of new video databases
|Status:||Closed||Start date:||29 Jun 2015|
|Target version:||PiBox - 1.1.0 - Upgrades|
|Severity:||03 - Medium|
VideoFE doesn't support handling of hot-plugged USB sticks. To support these I need to have a thread that continues scanning and updates the local db. This includes plugging in a new stick and removing an existing one. It probably makes sense for the thread to use a double-buffered db: create one and then quickly (via mutex lock) replace the current one.
RM #454: Add watcher thread that uses inotify to look for db changes and updates the display immediately.
#5 Updated by Hammel about 1 year ago
- Status changed from New to In Progress
- % Done changed from 0 to 70
This is close to done. I've got the inotify stuff working. The problem now is how I update the poster. That gets updated when the liststore is changed. However, if the liststore is cleared then the poster remains. Also, the poster doesn't get cleared if we switch from movies to TV or back.
I have code now that does do this but it's crashing because of some memory leak. Fix that and I can call this done.
#6 Updated by Hammel about 1 year ago
- Status changed from In Progress to Closed
- % Done changed from 70 to 100
Done. Buffer overrun in reading config file was causing crashes. Poster update is now fixed. Dynamic updates are NOT done but if a db disappears and user tries to use a removed entry the app switches to the other db, which will be updated at that point.
Tested, committed and pushed.