mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
add log for update video/audio sequence header
This commit is contained in:
parent
687d190da1
commit
bf1113dad7
1 changed files with 2 additions and 0 deletions
|
@ -359,6 +359,7 @@ int SrsSource::on_audio(SrsCommonMessage* audio)
|
||||||
if (codec->audio_is_sequence_header(msg->payload, msg->size)) {
|
if (codec->audio_is_sequence_header(msg->payload, msg->size)) {
|
||||||
srs_freep(cache_sh_audio);
|
srs_freep(cache_sh_audio);
|
||||||
cache_sh_audio = msg->copy();
|
cache_sh_audio = msg->copy();
|
||||||
|
srs_trace("update audio sequence header success.");
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -403,6 +404,7 @@ int SrsSource::on_video(SrsCommonMessage* video)
|
||||||
if (codec->video_is_sequence_header(msg->payload, msg->size)) {
|
if (codec->video_is_sequence_header(msg->payload, msg->size)) {
|
||||||
srs_freep(cache_sh_video);
|
srs_freep(cache_sh_video);
|
||||||
cache_sh_video = msg->copy();
|
cache_sh_video = msg->copy();
|
||||||
|
srs_trace("update video sequence header success.");
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue