修复拼写错误

This commit is contained in:
xiongziliang 2020-10-24 23:30:06 +08:00
parent c5f1b4cd52
commit dd2abd7924
3 changed files with 6 additions and 6 deletions

View File

@ -37,7 +37,7 @@ void MediaPlayer::play(const string &url) {
_delegate->setOnShutdown(_shutdownCB); _delegate->setOnShutdown(_shutdownCB);
_delegate->setOnPlayResult(_playResultCB); _delegate->setOnPlayResult(_playResultCB);
_delegate->setOnResume(_resumeCB); _delegate->setOnResume(_resumeCB);
_delegate->setMediaSouce(_pMediaSrc); _delegate->setMediaSource(_pMediaSrc);
_delegate->mINI::operator=(*this); _delegate->mINI::operator=(*this);
_delegate->play(url); _delegate->play(url);
} }

View File

@ -103,7 +103,7 @@ public:
* MediaSourcertsp/rtmp代理 * MediaSourcertsp/rtmp代理
* @param src * @param src
*/ */
virtual void setMediaSouce(const MediaSource::Ptr & src) {} virtual void setMediaSource(const MediaSource::Ptr & src) {}
/** /**
* rtsp * rtsp
@ -181,9 +181,9 @@ public:
return Parent::seekTo(fProgress); return Parent::seekTo(fProgress);
} }
void setMediaSouce(const MediaSource::Ptr & src) override { void setMediaSource(const MediaSource::Ptr & src) override {
if (_delegate) { if (_delegate) {
_delegate->setMediaSouce(src); _delegate->setMediaSource(src);
} }
_pMediaSrc = src; _pMediaSrc = src;
} }

View File

@ -126,7 +126,7 @@ void PlayerProxy::play(const string &strUrlTmp) {
mediaSource = std::make_shared<RtmpMediaSource>(_vhost, _app, _stream_id); mediaSource = std::make_shared<RtmpMediaSource>(_vhost, _app, _stream_id);
} }
if(mediaSource){ if(mediaSource){
setMediaSouce(mediaSource); setMediaSource(mediaSource);
mediaSource->setListener(shared_from_this()); mediaSource->setListener(shared_from_this());
} }
} }
@ -163,7 +163,7 @@ bool PlayerProxy::close(MediaSource &sender,bool force) {
return; return;
} }
strongSelf->_muxer.reset(); strongSelf->_muxer.reset();
strongSelf->setMediaSouce(nullptr); strongSelf->setMediaSource(nullptr);
strongSelf->teardown(); strongSelf->teardown();
if (strongSelf->_on_close) { if (strongSelf->_on_close) {
strongSelf->_on_close(); strongSelf->_on_close();