From 7b60f8b0936566965c9448020a81482746f233e1 Mon Sep 17 00:00:00 2001 From: ziyue <1213642868@qq.com> Date: Thu, 12 Aug 2021 20:55:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=AE=8C=E5=96=84=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/source/mk_player.cpp | 6 ++---- src/Rtsp/RtspSession.cpp | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/api/source/mk_player.cpp b/api/source/mk_player.cpp index e1fe2117..4d4fadd6 100755 --- a/api/source/mk_player.cpp +++ b/api/source/mk_player.cpp @@ -309,11 +309,9 @@ API_EXPORT float API_CALL mk_player_progress(mk_player ctx) { return obj->getProgress(); } - -API_EXPORT int API_CALL mk_player_progress_pos(mk_player ctx) -{ +API_EXPORT int API_CALL mk_player_progress_pos(mk_player ctx) { assert(ctx); - MediaPlayerForC& obj = **((MediaPlayerForC::Ptr*)ctx); + MediaPlayerForC &obj = **((MediaPlayerForC::Ptr *) ctx); return obj->getProgressPos(); } diff --git a/src/Rtsp/RtspSession.cpp b/src/Rtsp/RtspSession.cpp index e4d043f3..38b9a49e 100644 --- a/src/Rtsp/RtspSession.cpp +++ b/src/Rtsp/RtspSession.cpp @@ -782,7 +782,7 @@ void RtspSession::handleReq_Play(const Parser &parser) { //这是设置播放速度 auto speed = atof(strScale.data()); play_src->speed(speed); - InfoP(this) << "rtp set play speed:" << speed; + InfoP(this) << "rtsp set play speed:" << speed; } if (!strRange.empty()) {