Skip to content

Commit

Permalink
fix(HLSStream): get the ringht steam meta opened
Browse files Browse the repository at this point in the history
Signed-off-by: pingkai <pingkai010@gmail.com>
  • Loading branch information
pingkai committed Feb 28, 2020
1 parent d8353c8 commit 91355f2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion framework/demuxer/play_list/HLSStream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,7 @@ namespace Cicada {
if ((trackerType == STREAM_TYPE_MIXED && subType != STREAM_TYPE_UNKNOWN) || subType == trackerType) {
AF_LOGW("open stream index is %d\n", i);
mPDemuxer->OpenStream(i);
OpenedStreamIndex = i;
}

if (needUpdateMeta) {
Expand Down Expand Up @@ -1059,7 +1060,7 @@ namespace Cicada {
meta->type = (Stream_type) mPTracker->getStreamType();

if (meta->type != STREAM_TYPE_MIXED) {
index = 0;
index = OpenedStreamIndex;
}

uint64_t bandwidth;
Expand Down
1 change: 1 addition & 0 deletions framework/demuxer/play_list/HLSStream.h
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ namespace Cicada {
int64_t mVttPtsOffSet = INT64_MIN;

std::unique_ptr<DemuxerMetaInfo> mDemuxerMeta = nullptr;
int OpenedStreamIndex = 0;
};
}

Expand Down

0 comments on commit 91355f2

Please sign in to comment.