diff options
author | Andreas Huber <andih@google.com> | 2011-11-03 11:00:21 -0700 |
---|---|---|
committer | Andreas Huber <andih@google.com> | 2011-11-03 11:00:21 -0700 |
commit | 1183a4ab06b9fe01fe39a4b8728bfc71789361fc (patch) | |
tree | 00ddd671c9cccb82663b0b6928880307f25af975 /media/libmediaplayerservice | |
parent | 254c2211b5088bb7d84d7126306aad7763b58372 (diff) | |
download | frameworks_av-1183a4ab06b9fe01fe39a4b8728bfc71789361fc.zip frameworks_av-1183a4ab06b9fe01fe39a4b8728bfc71789361fc.tar.gz frameworks_av-1183a4ab06b9fe01fe39a4b8728bfc71789361fc.tar.bz2 |
Poll input data with a small timeout and don't consume a full core.
Change-Id: I3c288698920fe6ead0df24a52330483609821a41
related-to-bug: 5549263
Diffstat (limited to 'media/libmediaplayerservice')
-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 7cdb76c..70208f8 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) { |