修复拼写错误

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

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