修复未初始化导致的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: private:
RtmpMediaSourceMuxer::Ptr _rtmp; RtmpMediaSourceMuxer::Ptr _rtmp;
RtspMediaSourceMuxer::Ptr _rtsp; RtspMediaSourceMuxer::Ptr _rtsp;
Listener *_listener; Listener *_listener = nullptr;
}; };

View File

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