Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1183a4ab authored by Andreas Huber's avatar Andreas Huber
Browse files

Poll input data with a small timeout and don't consume a full core.

Change-Id: I3c288698920fe6ead0df24a52330483609821a41
related-to-bug: 5549263
parent 254c2211
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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) {