summaryrefslogtreecommitdiffstats
path: root/media
diff options
context:
space:
mode:
authorRobert Shih <robertshih@google.com>2014-09-16 11:34:08 -0700
committerRobert Shih <robertshih@google.com>2014-09-16 14:05:03 -0700
commitda23ab9b0dfa780175651daf057a02b0aa106dc8 (patch)
tree51ecf38eb574f4d5d155ca2d4bf0b6f3520c8c96 /media
parent086c1e3f41a92aa0025a1da1db5dabbfdffaf129 (diff)
downloadframeworks_av-da23ab9b0dfa780175651daf057a02b0aa106dc8.zip
frameworks_av-da23ab9b0dfa780175651daf057a02b0aa106dc8.tar.gz
frameworks_av-da23ab9b0dfa780175651daf057a02b0aa106dc8.tar.bz2
GenericSource: fix selectTrack parameter
Bug: 17512187 Change-Id: I19a0915fb0fb1b1ae036bf5df85b9c9e7657a7ea
Diffstat (limited to 'media')
-rw-r--r--media/libmediaplayerservice/nuplayer/GenericSource.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/media/libmediaplayerservice/nuplayer/GenericSource.cpp b/media/libmediaplayerservice/nuplayer/GenericSource.cpp
index 511871d..a57e0f2 100644
--- a/media/libmediaplayerservice/nuplayer/GenericSource.cpp
+++ b/media/libmediaplayerservice/nuplayer/GenericSource.cpp
@@ -942,7 +942,7 @@ status_t NuPlayer::GenericSource::selectTrack(size_t trackIndex, bool select) {
ALOGV("%s track: %zu", select ? "select" : "deselect", trackIndex);
sp<AMessage> msg = new AMessage(kWhatSelectTrack, id());
msg->setInt32("trackIndex", trackIndex);
- msg->setInt32("select", trackIndex);
+ msg->setInt32("select", select);
sp<AMessage> response;
status_t err = msg->postAndAwaitResponse(&response);