Created
October 17, 2019 20:35
-
-
Save antimodular/a503803114caafa1d9ba37d95b9e908d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bool ofxNDIReceiverSoundObject::findSourceByUrl(ofxNDIReceiverSettings& settings, const std::vector<std::string>& extra_ips){ | |
if(settings.sourceUrl != "") { | |
return findSource([&settings](const ofxNDI::Source &s) { | |
std::vector<std::string> split_url = ofSplitString(s.p_url_address, ":"); | |
// return settings.sourceUrl == s.p_url_address; | |
return settings.sourceUrl == split_url[0]; | |
},settings, extra_ips, "at URL: " + settings.sourceUrl ); | |
} | |
ofLogWarning("ofxNDIReceiverSoundObject::findSourceByUrl") << "can not find a source by URL if URL is empty"; | |
return false; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment