1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

Context: Refine API

This commit is contained in:
winlin 2020-08-30 09:53:10 +08:00
parent cf428b8db4
commit 311cb77b36
5 changed files with 12 additions and 10 deletions

View file

@ -45,8 +45,8 @@ SrsThreadContext::~SrsThreadContext()
SrsContextId SrsThreadContext::generate_id()
{
SrsContextId cid = SrsContextId(srs_random_str(8));
return cid;
SrsContextId cid = SrsContextId();
return cid.set_value(srs_random_str(8));
}
const SrsContextId& SrsThreadContext::get_id()