mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-14 03:55:58 +08:00
MediaPusher使用弱指针保存MediaSource
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user