Commit ee12bb07 authored by François Cartegnie's avatar François Cartegnie 🤞
Browse files

demux: adaptative: check token existence

parent b78ea64b
......@@ -49,9 +49,9 @@ std::string Helper::combinePaths (const std::string &path1, const std::st
std::string Helper::getDirectoryPath (const std::string &path)
int pos = path.find_last_of('/');
std::size_t pos = path.find_last_of('/');
return path.substr(0, pos);
return (pos != std::string::npos) ? path.substr(0, pos) : path;
bool Helper::ifind(std::string haystack, std::string needle)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment