MediaPusher使用弱指针保存MediaSource

This commit is contained in:
xiongziliang
2019-03-28 09:23:22 +08:00
parent 32da13114a
commit b1859e33ab
2 changed files with 2 additions and 3 deletions

View File

@@ -46,7 +46,7 @@ MediaPusher::MediaPusher(const string &schema,
MediaPusher::~MediaPusher() {
}
void MediaPusher::publish(const string &strUrl) {
_parser = PusherBase::createPusher(_src,strUrl);
_parser = PusherBase::createPusher(_src.lock(),strUrl);
_parser->setOnShutdown(_shutdownCB);
_parser->setOnPublished(_publishCB);
_parser->mINI::operator=(*this);