diff --git a/libraries/zmusic/decoder/mpg123_decoder.h b/libraries/zmusic/decoder/mpg123_decoder.h index d6c8675e4..83ed6be33 100644 --- a/libraries/zmusic/decoder/mpg123_decoder.h +++ b/libraries/zmusic/decoder/mpg123_decoder.h @@ -35,7 +35,7 @@ private: mpg123_handle *MPG123; bool Done; - MusicIO::FileInterface* Reader; + MusicIO::FileInterface* Reader = nullptr; static off_t file_lseek(void *handle, off_t offset, int whence); static ssize_t file_read(void *handle, void *buffer, size_t bytes); diff --git a/libraries/zmusic/decoder/sndfile_decoder.h b/libraries/zmusic/decoder/sndfile_decoder.h index 33aad19d8..2761ec7c4 100644 --- a/libraries/zmusic/decoder/sndfile_decoder.h +++ b/libraries/zmusic/decoder/sndfile_decoder.h @@ -31,7 +31,7 @@ private: SNDFILE *SndFile; SF_INFO SndInfo; - MusicIO::FileInterface* Reader; + MusicIO::FileInterface* Reader = nullptr; static sf_count_t file_get_filelen(void *user_data); static sf_count_t file_seek(sf_count_t offset, int whence, void *user_data); static sf_count_t file_read(void *ptr, sf_count_t count, void *user_data);