Loading media/libstagefright/wifi-display/source/Converter.cpp +4 −0 Original line number Diff line number Diff line Loading @@ -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()); Loading Loading @@ -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); Loading media/libstagefright/wifi-display/source/PlaybackSession.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -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; } Loading Loading
media/libstagefright/wifi-display/source/Converter.cpp +4 −0 Original line number Diff line number Diff line Loading @@ -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()); Loading Loading @@ -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); Loading
media/libstagefright/wifi-display/source/PlaybackSession.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -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; } Loading