Fixed RTMP restreaming bug.

This commit is contained in:
Thulinma 2013-11-26 15:35:20 +01:00
parent 93024075a3
commit deb6085b6d
2 changed files with 4 additions and 0 deletions

View file

@ -17,6 +17,8 @@ namespace Buffer {
creator.lock();
if (ref == 0){
ref = new Stream();
ref->metadata["tracks"] = 1ll;
ref->metadata["live"] = 1ll;
}
creator.unlock();
}

View file

@ -195,6 +195,8 @@ namespace Connector_RTMP {
Socket.close(); //disconnect user
return;
}
DTSC::Stream Strm;
Strm.waitForMeta(ss);
ss.Send("P ");
ss.Send(Socket.getHost().c_str());
ss.Send(" ");