mirror of
https://github.com/mpromonet/v4l2rtspserver
synced 2024-11-02 03:40:13 +00:00
add addsession with one seesion instead of a lsit
This commit is contained in:
parent
d7dd3fa0c4
commit
bee3001133
@ -42,6 +42,15 @@ class V4l2RTSPServer {
|
||||
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 nbSubsession = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user