winlin

reset the audio sample size and video frame size when unpublish

@@ -469,6 +469,7 @@ void SrsSource::on_unpublish() @@ -469,6 +469,7 @@ void SrsSource::on_unpublish()
469 clear_gop_cache(); 469 clear_gop_cache();
470 470
471 srs_freep(cache_metadata); 471 srs_freep(cache_metadata);
  472 + video_frame_rate = audio_sample_rate = 0;
472 473
473 srs_freep(cache_sh_video); 474 srs_freep(cache_sh_video);
474 srs_freep(cache_sh_audio); 475 srs_freep(cache_sh_audio);