优化完善代码

This commit is contained in:
ziyue 2021-08-12 20:55:11 +08:00
parent 4dbe0a1d3e
commit 7b60f8b093
2 changed files with 3 additions and 5 deletions

View File

@ -309,9 +309,7 @@ API_EXPORT float API_CALL mk_player_progress(mk_player ctx) {
return obj->getProgress(); 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); assert(ctx);
MediaPlayerForC &obj = **((MediaPlayerForC::Ptr *) ctx); MediaPlayerForC &obj = **((MediaPlayerForC::Ptr *) ctx);
return obj->getProgressPos(); return obj->getProgressPos();

View File

@ -782,7 +782,7 @@ void RtspSession::handleReq_Play(const Parser &parser) {
//这是设置播放速度 //这是设置播放速度
auto speed = atof(strScale.data()); auto speed = atof(strScale.data());
play_src->speed(speed); play_src->speed(speed);
InfoP(this) << "rtp set play speed:" << speed; InfoP(this) << "rtsp set play speed:" << speed;
} }
if (!strRange.empty()) { if (!strRange.empty()) {