diff --git a/src/Common/MultiMediaSourceMuxer.h b/src/Common/MultiMediaSourceMuxer.h index d019b107..10f63eae 100644 --- a/src/Common/MultiMediaSourceMuxer.h +++ b/src/Common/MultiMediaSourceMuxer.h @@ -156,7 +156,7 @@ protected: private: RtmpMediaSourceMuxer::Ptr _rtmp; RtspMediaSourceMuxer::Ptr _rtsp; - Listener *_listener; + Listener *_listener = nullptr; }; diff --git a/src/Player/PlayerBase.h b/src/Player/PlayerBase.h index 0dd74bf8..8fb397b3 100644 --- a/src/Player/PlayerBase.h +++ b/src/Player/PlayerBase.h @@ -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;