mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-11 18:34:58 +01:00
Code editor for Custom pattern gstreamer
Bugfix in Streamsource and UI
This commit is contained in:
@@ -45,7 +45,7 @@ GenericStreamSource::GenericStreamSource(uint64_t id) : StreamSource(id)
|
||||
|
||||
void GenericStreamSource::setDescription(const std::string &desc)
|
||||
{
|
||||
gst_description_ = BaseToolkit::unwrapped(desc);
|
||||
gst_description_ = desc;
|
||||
gst_elements_ = BaseToolkit::splitted(desc, '!');
|
||||
Log::Notify("Creating Source with Stream description '%s'", gst_description_.c_str());
|
||||
|
||||
@@ -82,6 +82,8 @@ glm::ivec2 GenericStreamSource::icon() const
|
||||
|
||||
std::string GenericStreamSource::info() const
|
||||
{
|
||||
if (gst_elements_.empty())
|
||||
return "Gstreamer custom pipeline without source";
|
||||
std::string src_element = gst_elements_.front();
|
||||
src_element = src_element.substr(0, src_element.find(" "));
|
||||
return std::string("Gstreamer custom pipeline with source '")+src_element+"'";
|
||||
|
||||
Reference in New Issue
Block a user