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

Commit c910b7ac authored by Andreas Huber's avatar Andreas Huber Committed by Android (Google) Code Review
Browse files

Merge "Add some more logging, reduce startup delay to 1 sec." into jb-mr1-dev

parents c7d9afdc 92f655fe
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;
}