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

For #299, extract fragment and fragment window for hls

This commit is contained in:
winlin 2017-03-18 21:29:08 +08:00
parent 6da6e0511d
commit da4c390d69
9 changed files with 450 additions and 192 deletions

View file

@ -158,6 +158,13 @@ SrsDashController::SrsDashController()
SrsDashController::~SrsDashController()
{
srs_freep(mpd);
vector<SrsFragmentedMp4*>::iterator it;
for (it = fragments.begin(); it != fragments.end(); ++it) {
SrsFragmentedMp4* fragment = *it;
srs_freep(fragment);
}
fragments.clear();
}
int SrsDashController::initialize(SrsRequest* r)