Fixed RTMP restreaming bug.
This commit is contained in:
parent
93024075a3
commit
deb6085b6d
2 changed files with 4 additions and 0 deletions
|
@ -17,6 +17,8 @@ namespace Buffer {
|
|||
creator.lock();
|
||||
if (ref == 0){
|
||||
ref = new Stream();
|
||||
ref->metadata["tracks"] = 1ll;
|
||||
ref->metadata["live"] = 1ll;
|
||||
}
|
||||
creator.unlock();
|
||||
}
|
||||
|
|
|
@ -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(" ");
|
||||
|
|
Loading…
Add table
Reference in a new issue