Skip to content

Commit

Permalink
Refine code
Browse files Browse the repository at this point in the history
  • Loading branch information
winlinvip committed Oct 7, 2023
1 parent b37bee6 commit 38fa4f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions trunk/src/app/srs_app_hls.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1027,7 +1027,7 @@ srs_error_t SrsHlsController::write_audio(SrsAudioFrame* frame, int64_t pts)
return srs_error_wrap(err, "hls: cache audio");
}

// First, update the duration of the segment, as we might collect the segment. The duration should
// First, update the duration of the segment, as we might reap the segment. The duration should
// cover from the first frame to the last frame.
muxer->update_duration(tsmc->audio->dts);

Expand Down Expand Up @@ -1078,7 +1078,7 @@ srs_error_t SrsHlsController::write_video(SrsVideoFrame* frame, int64_t dts)
return srs_error_wrap(err, "hls: cache video");
}

// First, update the duration of the segment, as we might collect the segment. The duration should
// First, update the duration of the segment, as we might reap the segment. The duration should
// cover from the first frame to the last frame.
muxer->update_duration(tsmc->video->dts);

Expand Down

0 comments on commit 38fa4f6

Please sign in to comment.