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

dispose the gop cache

This commit is contained in:
winlin 2015-06-07 09:27:47 +08:00
parent beb0431746
commit 811ef4bcf6
3 changed files with 13 additions and 0 deletions

View file

@ -583,6 +583,11 @@ SrsGopCache::~SrsGopCache()
clear();
}
void SrsGopCache::dispose()
{
clear();
}
void SrsGopCache::set(bool enabled)
{
enable_gop_cache = enabled;
@ -955,6 +960,8 @@ void SrsSource::dispose()
#ifdef SRS_AUTO_HLS
hls->dispose();
#endif
gop_cache->dispose();
}
int SrsSource::cycle()