Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 031b695b authored by Dongwon Kang's avatar Dongwon Kang Committed by Android (Google) Code Review
Browse files

Merge "Initialize mDataSource in MidiIoWrapper c-tors."

parents 0263a5ec 04ce77ff
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -38,6 +38,7 @@ MidiIoWrapper::MidiIoWrapper(const char *path) {
    mFd = open(path, O_RDONLY | O_LARGEFILE);
    mBase = 0;
    mLength = lseek(mFd, 0, SEEK_END);
    mDataSource = nullptr;
}

MidiIoWrapper::MidiIoWrapper(int fd, off64_t offset, int64_t size) {
@@ -45,6 +46,7 @@ MidiIoWrapper::MidiIoWrapper(int fd, off64_t offset, int64_t size) {
    mFd = fd < 0 ? -1 : dup(fd);
    mBase = offset;
    mLength = size;
    mDataSource = nullptr;
}

MidiIoWrapper::MidiIoWrapper(DataSourceBase *source) {