修复未初始化导致的bug

This commit is contained in:
xiongziliang 2019-12-26 19:36:57 +08:00
parent 003021e24b
commit 56397628da
2 changed files with 2 additions and 2 deletions

View File

@ -156,7 +156,7 @@ protected:
private:
RtmpMediaSourceMuxer::Ptr _rtmp;
RtspMediaSourceMuxer::Ptr _rtsp;
Listener *_listener;
Listener *_listener = nullptr;
};

View File

@ -282,7 +282,7 @@ public:
protected:
void onAddTrack(const Track::Ptr &track);
protected:
Listener *_listener;
Listener *_listener = nullptr;
AudioTrack::Ptr _audioTrack;
VideoTrack::Ptr _videoTrack;
Ticker _ticker;