Skip to content

Commit

Permalink
fix(mediaPlayer): use the right id in SwitchStreamAligned
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 2973e09 commit e3005be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mediaPlayer/SuperMediaPlayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3619,7 +3619,7 @@ namespace Cicada {
mVideoChangedFirstPts = INT64_MAX;

if (willChangeInfo->videoBandwidth < currentInfo->videoBandwidth) {
mDemuxerService->SwitchStreamAligned(mCurrentVideoIndex, index);
mDemuxerService->SwitchStreamAligned(currentId, index);
} else {
mMixMode = (type == STREAM_TYPE_MIXED);
int videoCount = 0;
Expand Down

0 comments on commit e3005be

Please sign in to comment.