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

Commit c5b50e66 authored by Andy Hung's avatar Andy Hung Committed by Automerger Merge Worker
Browse files

Merge "SoundPool: fix fcntl argument" into rvc-dev am: 27630cbb am:...

Merge "SoundPool: fix fcntl argument" into rvc-dev am: 27630cbb am: cbedd4a3 am: ba5099be am: e35dc1cf

Original change: undetermined

Change-Id: I7b98d9e0e62584e5bcf68b00fa19889574014612
parents 5e9fad2a e35dc1cf
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -31,7 +31,7 @@ constexpr size_t kDefaultHeapSize = 1024 * 1024; // 1MB (compatible with low m

Sound::Sound(int32_t soundID, int fd, int64_t offset, int64_t length)
    : mSoundID(soundID)
    , mFd(fcntl(fd, F_DUPFD_CLOEXEC)) // like dup(fd) but closes on exec to prevent leaks.
    , mFd(fcntl(fd, F_DUPFD_CLOEXEC, (int)0 /* arg */)) // dup(fd) + close on exec to prevent leaks.
    , mOffset(offset)
    , mLength(length)
{