add addsession with one seesion instead of a lsit

This commit is contained in:
mpromonet 2020-05-30 12:01:57 +01:00
parent d7dd3fa0c4
commit bee3001133

View File

@ -42,6 +42,15 @@ class V4l2RTSPServer {
delete scheduler; delete scheduler;
} }
int addSession(const std::string & sessionName, ServerMediaSubsession* subSession)
{
std::list<ServerMediaSubsession*> subSessionList;
if (subSession) {
subSessionList.push_back(subSession);
}
return this->addSession(sessionName, subSessionList);
}
int addSession(const std::string & sessionName, const std::list<ServerMediaSubsession*> & subSession) int addSession(const std::string & sessionName, const std::list<ServerMediaSubsession*> & subSession)
{ {
int nbSubsession = 0; int nbSubsession = 0;