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(); creator.lock();
if (ref == 0){ if (ref == 0){
ref = new Stream(); ref = new Stream();
ref->metadata["tracks"] = 1ll;
ref->metadata["live"] = 1ll;
} }
creator.unlock(); creator.unlock();
} }

View file

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