Improved GenericStreamSource, with stream discoverer

Also timeout to fail if open does not works + new GST icon.
This commit is contained in:
Bruno Herbelin
2021-12-31 13:15:23 +01:00
parent 7b26b0f23e
commit f02a99a4e2
6 changed files with 98 additions and 52 deletions

View File

@@ -59,6 +59,9 @@ protected:
*/
class GenericStreamSource : public StreamSource
{
std::string gst_description_;
std::list<std::string> gst_elements_;
public:
GenericStreamSource();
@@ -70,6 +73,11 @@ public:
// specific interface
void setDescription(const std::string &desc);
std::string description() const;
std::list<std::string> gstElements() const;
glm::ivec2 icon() const override;
std::string info() const override;
};
#endif // STREAMSOURCE_H