Fixed Device manager: restore gmainloop

The gmainloop is used by gst to detect devices. Fixed bugs on detection of invalid devices.
This commit is contained in:
Bruno Herbelin
2022-01-02 14:17:10 +01:00
parent 53ae715816
commit 61e89286bc
4 changed files with 91 additions and 79 deletions

View File

@@ -100,6 +100,7 @@ public:
return _instance;
}
void init();
int numDevices () const;
std::string name (int index) const;
std::string description (int index) const;
@@ -116,7 +117,8 @@ public:
private:
void remove(const char *device);
void remove(GstDevice *device);
void add(GstDevice *device);
std::vector< std::string > src_name_;
std::vector< std::string > src_description_;