mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-13 11:19:58 +01:00
New SourcePlayer
Work in progress; Sources now have play/pause and associated play functions. Media player can play all playable sources, and adapts to control a media player when possible. Selection of play groups (to finalize)
This commit is contained in:
@@ -14,6 +14,18 @@ bool compare_depth (Source * first, Source * second)
|
||||
return ( first->depth() < second->depth() );
|
||||
}
|
||||
|
||||
|
||||
bool notplayable (const Source *s) { return !s->playable(); }
|
||||
|
||||
SourceList playable_only (const SourceList &list)
|
||||
{
|
||||
SourceList pl = list;
|
||||
|
||||
pl.remove_if(notplayable);
|
||||
|
||||
return pl;
|
||||
}
|
||||
|
||||
SourceList depth_sorted(const SourceList &list)
|
||||
{
|
||||
SourceList sl = list;
|
||||
|
||||
Reference in New Issue
Block a user