diff options
author | Andreas Huber <andih@google.com> | 2011-11-03 11:00:21 -0700 |
---|---|---|
committer | The Android Automerger <android-build@android.com> | 2011-11-04 15:17:55 -0700 |
commit | 6d25e3400cee4ca6965a9fd22222a8389c08380c (patch) | |
tree | f53e72ca4a5f30aaffb855e5831370caca2ed1cd | |
parent | 287c1e66feaf6cee7c0789d7f82940d3856eafc2 (diff) | |
download | base-6d25e3400cee4ca6965a9fd22222a8389c08380c.tar.gz |
DO NOT MERGE Poll input data with a small timeout and don't consume a full core.
Change-Id: I3c288698920fe6ead0df24a52330483609821a41
related-to-bug: 5549263
-rw-r--r-- | media/libmediaplayerservice/nuplayer/NuPlayer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/media/libmediaplayerservice/nuplayer/NuPlayer.cpp b/media/libmediaplayerservice/nuplayer/NuPlayer.cpp index 6b40528a160f..6c541301eaf2 100644 --- a/media/libmediaplayerservice/nuplayer/NuPlayer.cpp +++ b/media/libmediaplayerservice/nuplayer/NuPlayer.cpp @@ -274,7 +274,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) { |