Browse Source

Another attempt to fix TAB issue on RPi

master
Krisjanis Rijnieks 9 years ago
parent
commit
80885348cb
  1. 17
      src/Commands/SetNextSourceCmd.cpp

17
src/Commands/SetNextSourceCmd.cpp

@ -89,14 +89,15 @@ void SetNextSourceCmd::exec(){
mediaServer->unloadMedia(sourceId);
*/
if(_sources[_nextSourceIndex].type == SourceType::SOURCE_TYPE_FBO){
_sourcesEditor->setFboSource(_sources[_nextSourceIndex].id);
}else if(_sources[_nextSourceIndex].type == SourceType::SOURCE_TYPE_IMAGE){
if(_sources[_nextSourceIndex].type == SourceType::SOURCE_TYPE_IMAGE){
_sourcesEditor->setImageSource(_sources[_nextSourceIndex].id);
}else if(_sources[_nextSourceIndex].type == SourceType::SOURCE_TYPE_VIDEO){
_sourcesEditor->setVideoSource(_sources[_nextSourceIndex].id);
}else if(_sources[_nextSourceIndex].type == SourceType::SOURCE_TYPE_FBO){
_sourcesEditor->setFboSource(_sources[_nextSourceIndex].id);
}else if(_sources[_nextSourceIndex].type == SourceType::SOURCE_TYPE_NONE){
_sourcesEditor->clearSource();
}
}
void SetNextSourceCmd::undo(){
@ -115,12 +116,14 @@ void SetNextSourceCmd::undo(){
mediaServer->unloadMedia(_sources[_nextSourceIndex].id);
*/
if(_sources[_sourceIndex].type == SourceType::SOURCE_TYPE_FBO){
_sourcesEditor->setFboSource(_sources[_sourceIndex].id);
}else if(_sources[_sourceIndex].type == SourceType::SOURCE_TYPE_IMAGE){
if(_sources[_sourceIndex].type == SourceType::SOURCE_TYPE_IMAGE){
_sourcesEditor->setImageSource(_sources[_sourceIndex].id);
}else if(_sources[_sourceIndex].type == SourceType::SOURCE_TYPE_VIDEO){
_sourcesEditor->setVideoSource(_sources[_sourceIndex].id);
}else if(_sources[_sourceIndex].type == SourceType::SOURCE_TYPE_FBO){
_sourcesEditor->setFboSource(_sources[_sourceIndex].id);
}else if(_sources[_sourceIndex].type == SourceType::SOURCE_TYPE_NONE){
_sourcesEditor->clearSource();
}
}

Loading…
Cancel
Save