Skip to content

Commit

Permalink
fix(HLSManager): first seek video or mix steam
Browse files Browse the repository at this point in the history
Signed-off-by: pingkai <pingkai010@gmail.com>
  • Loading branch information
pingkai committed Feb 11, 2020
1 parent 1c50acf commit ed5063f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion framework/demuxer/play_list/HLSManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -450,10 +450,12 @@ namespace Cicada {

// 2. seek video first ,get the seekedUs
type = STREAM_TYPE_VIDEO;
// TODO type use bit or

for (auto &i : mStreamInfoList) {
if (i->selected) {
if (i->mPStream->getStreamType() == type) {
if (i->mPStream->getStreamType() == STREAM_TYPE_VIDEO || i->mPStream->getStreamType() == STREAM_TYPE_MIXED) {
type = i->mPStream->getStreamType();
int64_t seekedUs = i->mPStream->seek(us, flags);
AF_LOGD("first seeked time is %lld --> %lld", us, seekedUs);
us = seekedUs;
Expand Down

0 comments on commit ed5063f

Please sign in to comment.