- Made HLS no longer skip first fragment.
- Ignore metadata tracks and invalid tracks for buffer calculations. - Fixed statistics.
This commit is contained in:
parent
a604d616f7
commit
401fe65979
5 changed files with 6 additions and 9 deletions
|
@ -116,7 +116,7 @@ namespace Mist {
|
|||
/// Assumes streamName class member has been set already.
|
||||
/// Will start input if not currently active, calls onFail() if this does not succeed.
|
||||
/// After assuring stream is online, clears metaPages, then sets metaPages[0], statsPage and userClient to (hopefully) valid handles.
|
||||
/// Finally, calls updateMeta()
|
||||
/// Finally, calls updateMeta() and stats()
|
||||
void Output::reconnect(){
|
||||
if (!Util::startInput(streamName)){
|
||||
DEBUG_MSG(DLVL_FAIL, "Opening stream failed - aborting initalization");
|
||||
|
@ -142,6 +142,7 @@ namespace Mist {
|
|||
char userPageName[NAME_BUFFER_SIZE];
|
||||
snprintf(userPageName, NAME_BUFFER_SIZE, SHM_USERS, streamName.c_str());
|
||||
userClient = IPC::sharedClient(userPageName, PLAY_EX_SIZE, true);
|
||||
stats();
|
||||
updateMeta();
|
||||
}
|
||||
|
||||
|
|
|
@ -75,13 +75,8 @@ namespace Mist {
|
|||
lines.push_back(line.str());
|
||||
}
|
||||
|
||||
//skip the first fragment if live and there are more than 2 fragments.
|
||||
unsigned int skippedLines = 0;
|
||||
if (myMeta.live){
|
||||
if (lines.size() > 2){
|
||||
lines.pop_front();
|
||||
skippedLines++;
|
||||
}
|
||||
//only print the last segment when VoD
|
||||
lines.pop_back();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue