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

Commit 92f655fe authored by Andreas Huber's avatar Andreas Huber
Browse files

Add some more logging, reduce startup delay to 1 sec.

Change-Id: Ic24a3d9e3e645288411efb46f7004d89e7a0a4b7
parent 2a865ad8
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -248,6 +248,8 @@ status_t Converter::feedEncoderInputBuffers() {
        if (buffer != NULL) {
            CHECK(buffer->meta()->findInt64("timeUs", &timeUs));

            ALOGV("in: %s timeUs = %lld us", mIsVideo ? "video" : "audio", timeUs);

            memcpy(mEncoderInputBuffers.itemAt(bufferIndex)->data(),
                   buffer->data(),
                   buffer->size());
@@ -298,6 +300,8 @@ status_t Converter::doMoreWork() {
            notify->setInt32("what", kWhatEOS);
            notify->post();
        } else {
            ALOGV("out: %s timeUs = %lld us", mIsVideo ? "video" : "audio", timeUs);

            sp<ABuffer> buffer = new ABuffer(size);
            buffer->meta()->setInt64("timeUs", timeUs);

+2 −2
Original line number Diff line number Diff line
@@ -415,8 +415,8 @@ status_t WifiDisplaySource::PlaybackSession::play() {
}

status_t WifiDisplaySource::PlaybackSession::finishPlay() {
    // XXX Give the dongle 3 secs to bind its sockets.
    (new AMessage(kWhatFinishPlay, id()))->post(3000000ll);
    // XXX Give the dongle a second to bind its sockets.
    (new AMessage(kWhatFinishPlay, id()))->post(1000000ll);
    return OK;
}