Dialog media include more formats

Integrate exotic file extensions and uppercase equivalent of all possible files to select with dialogs. 
Code cleanup
This commit is contained in:
Bruno
2021-08-06 16:43:25 +02:00
parent a9c9683b8b
commit 8c206898f0
4 changed files with 47 additions and 40 deletions

View File

@@ -85,19 +85,21 @@ void Session::update(float dt)
if ( render_.frame() == nullptr )
return;
// pre-render of all sources
// pre-render all sources
failedSource_ = nullptr;
bool ready = true;
for( SourceList::iterator it = sources_.begin(); it != sources_.end(); ++it){
// ensure the RenderSource is rendering this session
RenderSource *s = dynamic_cast<RenderSource *>( *it );
if ( s!= nullptr && s->session() != this )
s->setSession(this);
// ensure the RenderSource is rendering *this* session
RenderSource *rs = dynamic_cast<RenderSource *>( *it );
if ( rs!= nullptr && rs->session() != this )
rs->setSession(this);
// discard failed source
if ( (*it)->failed() ) {
failedSource_ = (*it);
}
// render normally
else {
if ( !(*it)->ready() )
ready = false;