Re-order userClient init for stream-type inputs.
This commit is contained in:
parent
6226a05fe3
commit
c17064c305
1 changed files with 6 additions and 5 deletions
|
@ -393,6 +393,12 @@ namespace Mist {
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
char userPageName[NAME_BUFFER_SIZE];
|
||||||
|
snprintf(userPageName, NAME_BUFFER_SIZE, SHM_USERS, streamName.c_str());
|
||||||
|
nProxy.userClient = IPC::sharedClient(userPageName, PLAY_EX_SIZE, true);
|
||||||
|
nProxy.userClient.countAsViewer = false;
|
||||||
|
|
||||||
parseStreamHeader();
|
parseStreamHeader();
|
||||||
|
|
||||||
if (myMeta.tracks.size() == 0){
|
if (myMeta.tracks.size() == 0){
|
||||||
|
@ -407,11 +413,6 @@ namespace Mist {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
char userPageName[NAME_BUFFER_SIZE];
|
|
||||||
snprintf(userPageName, NAME_BUFFER_SIZE, SHM_USERS, streamName.c_str());
|
|
||||||
nProxy.userClient = IPC::sharedClient(userPageName, PLAY_EX_SIZE, true);
|
|
||||||
nProxy.userClient.countAsViewer = false;
|
|
||||||
|
|
||||||
for (std::map<unsigned int, DTSC::Track>::iterator it = myMeta.tracks.begin(); it != myMeta.tracks.end(); it++){
|
for (std::map<unsigned int, DTSC::Track>::iterator it = myMeta.tracks.begin(); it != myMeta.tracks.end(); it++){
|
||||||
it->second.firstms = 0;
|
it->second.firstms = 0;
|
||||||
it->second.lastms = 0;
|
it->second.lastms = 0;
|
||||||
|
|
Loading…
Add table
Reference in a new issue