1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-02-13 03:41:55 +00:00

reset the audio sample size and video frame size when unpublish

This commit is contained in:
winlin 2013-11-13 13:29:03 +08:00
parent 0645f5e927
commit 687d190da1

View file

@ -469,6 +469,7 @@ void SrsSource::on_unpublish()
clear_gop_cache();
srs_freep(cache_metadata);
video_frame_rate = audio_sample_rate = 0;
srs_freep(cache_sh_video);
srs_freep(cache_sh_audio);