winlin

add comments for source, return for sequence header.

@@ -955,6 +955,7 @@ int SrsSource::on_audio(SrsMessage* audio) @@ -955,6 +955,7 @@ int SrsSource::on_audio(SrsMessage* audio)
955 } 955 }
956 956
957 // cache the sequence header if h264 957 // cache the sequence header if h264
  958 + // donot cache the sequence header to gop_cache, return here.
958 if (SrsCodec::audio_is_sequence_header(msg->payload, msg->size)) { 959 if (SrsCodec::audio_is_sequence_header(msg->payload, msg->size)) {
959 srs_freep(cache_sh_audio); 960 srs_freep(cache_sh_audio);
960 cache_sh_audio = msg->copy(); 961 cache_sh_audio = msg->copy();
@@ -1044,6 +1045,7 @@ int SrsSource::on_video(SrsMessage* video) @@ -1044,6 +1045,7 @@ int SrsSource::on_video(SrsMessage* video)
1044 } 1045 }
1045 1046
1046 // cache the sequence header if h264 1047 // cache the sequence header if h264
  1048 + // donot cache the sequence header to gop_cache, return here.
1047 if (SrsCodec::video_is_sequence_header(msg->payload, msg->size)) { 1049 if (SrsCodec::video_is_sequence_header(msg->payload, msg->size)) {
1048 srs_freep(cache_sh_video); 1050 srs_freep(cache_sh_video);
1049 cache_sh_video = msg->copy(); 1051 cache_sh_video = msg->copy();