commit | 1183a4ab06b9fe01fe39a4b8728bfc71789361fc | [log] [tgz] |
---|---|---|
author | Andreas Huber <andih@google.com> | Thu Nov 03 11:00:21 2011 -0700 |
committer | Andreas Huber <andih@google.com> | Thu Nov 03 11:00:21 2011 -0700 |
tree | 00ddd671c9cccb82663b0b6928880307f25af975 | |
parent | 254c2211b5088bb7d84d7126306aad7763b58372 [diff] [blame] |
Poll input data with a small timeout and don't consume a full core. Change-Id: I3c288698920fe6ead0df24a52330483609821a41 related-to-bug: 5549263
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 @@ if (err == -EWOULDBLOCK) { if (mSource->feedMoreTSData() == OK) { - msg->post(); + msg->post(10000ll); } } } else if (what == ACodec::kWhatEOS) {