summaryrefslogtreecommitdiffstats
path: root/media/libmediaplayerservice/nuplayer
diff options
context:
space:
mode:
authorAndreas Huber <andih@google.com>2011-11-03 18:12:39 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2011-11-03 18:12:39 +0000
commit0bdcaf9c5466cf9c84a8c98e160411ab74f05f4b (patch)
tree88193780bffad233d9cb7237a83bda250c364c11 /media/libmediaplayerservice/nuplayer
parentef7a78943ddbd22170cbf430aa9d2b2d9603d69c (diff)
parent1183a4ab06b9fe01fe39a4b8728bfc71789361fc (diff)
downloadframeworks_av-0bdcaf9c5466cf9c84a8c98e160411ab74f05f4b.zip
frameworks_av-0bdcaf9c5466cf9c84a8c98e160411ab74f05f4b.tar.gz
frameworks_av-0bdcaf9c5466cf9c84a8c98e160411ab74f05f4b.tar.bz2
am e395f645: Poll input data with a small timeout and don\'t consume a full core.
* commit 'e395f645aa4c30a4fad8beb3da6f8fad72338617': Poll input data with a small timeout and don't consume a full core.
Diffstat (limited to 'media/libmediaplayerservice/nuplayer')
-rw-r--r--media/libmediaplayerservice/nuplayer/NuPlayer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/media/libmediaplayerservice/nuplayer/NuPlayer.cpp b/media/libmediaplayerservice/nuplayer/NuPlayer.cpp
index 6d44501..3a452d8 100644
--- a/media/libmediaplayerservice/nuplayer/NuPlayer.cpp
+++ b/media/libmediaplayerservice/nuplayer/NuPlayer.cpp
@@ -282,7 +282,7 @@ void NuPlayer::onMessageReceived(const sp<AMessage> &msg) {
if (err == -EWOULDBLOCK) {
if (mSource->feedMoreTSData() == OK) {
- msg->post();
+ msg->post(10000ll);
}
}
} else if (what == ACodec::kWhatEOS) {