From fdbed9e83b95dd06549276fcbf1d3b484a95231b Mon Sep 17 00:00:00 2001 From: xiongziliang <771730766@qq.com> Date: Sat, 1 Aug 2020 10:17:54 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=BC=E5=AE=B9=E4=B8=80=E4=BA=9B=E4=B8=8D?= =?UTF-8?q?=E8=A7=84=E8=8C=83=E7=9A=84rtmp=E6=B5=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/source/mk_player.cpp | 2 +- tests/test_player.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/source/mk_player.cpp b/api/source/mk_player.cpp index a3dd4b9f..98bf6253 100755 --- a/api/source/mk_player.cpp +++ b/api/source/mk_player.cpp @@ -80,7 +80,7 @@ public: strong_self->onData(frame); } }); - for (auto &track : _player->getTracks()) { + for (auto &track : _player->getTracks(false)) { track->addDelegate(delegate); } } diff --git a/tests/test_player.cpp b/tests/test_player.cpp index 5417030d..f6ff3e78 100644 --- a/tests/test_player.cpp +++ b/tests/test_player.cpp @@ -109,7 +109,7 @@ int main(int argc, char *argv[]) { return; } - auto viedoTrack = strongPlayer->getTrack(TrackVideo); + auto viedoTrack = strongPlayer->getTrack(TrackVideo, false); if (!viedoTrack) { WarnL << "没有视频!"; return;