frameworks/base
Revision | 37750eb17402965e7679f69defa50dbf37486640 (tree) |
---|---|
Zeit | 2018-07-20 08:35:42 |
Autor | Robert Shih <robertshih@goog...> |
Commiter | JP Sugarbroad |
Fix TrackInfo parcel write
Bug: 77600398
Change-Id: Ia316f1c5dc4879f6851fdb78fe8b9039579be7bc
(cherry picked from commit 0d2dc943dcaa3d7c8479e22ae62be9753ea2643c)
@@ -2025,10 +2025,10 @@ public class MediaPlayer extends PlayerBase | ||
2025 | 2025 | @Override |
2026 | 2026 | public void writeToParcel(Parcel dest, int flags) { |
2027 | 2027 | dest.writeInt(mTrackType); |
2028 | + dest.writeString(mFormat.getString(MediaFormat.KEY_MIME)); | |
2028 | 2029 | dest.writeString(getLanguage()); |
2029 | 2030 | |
2030 | 2031 | if (mTrackType == MEDIA_TRACK_TYPE_SUBTITLE) { |
2031 | - dest.writeString(mFormat.getString(MediaFormat.KEY_MIME)); | |
2032 | 2032 | dest.writeInt(mFormat.getInteger(MediaFormat.KEY_IS_AUTOSELECT)); |
2033 | 2033 | dest.writeInt(mFormat.getInteger(MediaFormat.KEY_IS_DEFAULT)); |
2034 | 2034 | dest.writeInt(mFormat.getInteger(MediaFormat.KEY_IS_FORCED_SUBTITLE)); |