mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-13 11:19:58 +01:00
BugFix Counting ShaderSource for reacting in ShaderEditor
This commit is contained in:
@@ -77,6 +77,13 @@ void CountVisitor::visit (MediaSource& s)
|
||||
++num_playable_;
|
||||
}
|
||||
|
||||
void CountVisitor::visit (StreamSource& s)
|
||||
{
|
||||
++num_source_;
|
||||
if (s.playable())
|
||||
++num_playable_;
|
||||
}
|
||||
|
||||
void CountVisitor::visit (SessionFileSource& s)
|
||||
{
|
||||
if (s.session() != nullptr)
|
||||
@@ -152,3 +159,9 @@ void CountVisitor::visit (SrtReceiverSource& s)
|
||||
if (s.playable())
|
||||
++num_playable_;
|
||||
}
|
||||
|
||||
void CountVisitor::visit (ShaderSource& )
|
||||
{
|
||||
++num_source_;
|
||||
++num_playable_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user