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

Commit 565de71d authored by Dan Liang's avatar Dan Liang Committed by Andy Hung
Browse files

IMediaSource: Pack alignment of ReadOption struct

int64_t aligns differently in x86 vs x64, which presents
problems when communicating across Binder.
Use packed struct to avoid problems.

Bug: 30472583
Change-Id: Iacdad792e19c19899cde5289238b5aa8981a9a7a
parent 1b4c5978
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -89,7 +89,7 @@ public:
        SeekMode mSeekMode;
        int64_t mLatenessUs;
        bool mNonBlocking;
    };
    } __attribute__((packed)); // sent through Binder

    // Returns a new buffer of data. Call blocks until a
    // buffer is available, an error is encountered or the end of the stream