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
diff --git a/include/media/IMediaSource.h b/include/media/IMediaSource.h
index 709f425..4056d54 100644
--- a/include/media/IMediaSource.h
+++ b/include/media/IMediaSource.h
@@ -89,7 +89,7 @@
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