Loading cmds/screenrecord/screenrecord.cpp +4 −4 Original line number Diff line number Diff line Loading @@ -1159,13 +1159,13 @@ int main(int argc, char* const argv[]) { { NULL, 0, NULL, 0 } }; std::optional<PhysicalDisplayId> displayId = SurfaceComposerClient::getInternalDisplayId(); if (!displayId) { fprintf(stderr, "Failed to get ID for internal display\n"); const std::vector<PhysicalDisplayId> ids = SurfaceComposerClient::getPhysicalDisplayIds(); if (ids.empty()) { fprintf(stderr, "Failed to get ID for any displays\n"); return 1; } gPhysicalDisplayId = *displayId; gPhysicalDisplayId = ids.front(); while (true) { int optionIndex = 0; Loading cmds/stagefright/codec.cpp +4 −1 Original line number Diff line number Diff line Loading @@ -411,7 +411,10 @@ int main(int argc, char **argv) { composerClient = new SurfaceComposerClient; CHECK_EQ(composerClient->initCheck(), (status_t)OK); const sp<IBinder> display = SurfaceComposerClient::getInternalDisplayToken(); const std::vector<PhysicalDisplayId> ids = SurfaceComposerClient::getPhysicalDisplayIds(); CHECK(!ids.empty()); const sp<IBinder> display = SurfaceComposerClient::getPhysicalDisplayToken(ids.front()); CHECK(display != nullptr); ui::DisplayMode mode; Loading cmds/stagefright/mediafilter.cpp +4 −1 Original line number Diff line number Diff line Loading @@ -749,7 +749,10 @@ int main(int argc, char **argv) { composerClient = new SurfaceComposerClient; CHECK_EQ((status_t)OK, composerClient->initCheck()); const android::sp<IBinder> display = SurfaceComposerClient::getInternalDisplayToken(); const std::vector<PhysicalDisplayId> ids = SurfaceComposerClient::getPhysicalDisplayIds(); CHECK(!ids.empty()); const android::sp<IBinder> display = SurfaceComposerClient::getPhysicalDisplayToken(ids.front()); CHECK(display != nullptr); ui::DisplayMode mode; Loading cmds/stagefright/stream.cpp +7 −1 Original line number Diff line number Diff line Loading @@ -318,7 +318,13 @@ int main(int argc, char **argv) { sp<SurfaceComposerClient> composerClient = new SurfaceComposerClient; CHECK_EQ(composerClient->initCheck(), (status_t)OK); const sp<IBinder> display = SurfaceComposerClient::getInternalDisplayToken(); const std::vector<PhysicalDisplayId> ids = SurfaceComposerClient::getPhysicalDisplayIds(); if (ids.empty()) { SLOGE("Failed to get ID for any displays\n"); return 1; } const sp<IBinder> display = SurfaceComposerClient::getPhysicalDisplayToken(ids.front()); CHECK(display != nullptr); ui::DisplayMode mode; Loading Loading
cmds/screenrecord/screenrecord.cpp +4 −4 Original line number Diff line number Diff line Loading @@ -1159,13 +1159,13 @@ int main(int argc, char* const argv[]) { { NULL, 0, NULL, 0 } }; std::optional<PhysicalDisplayId> displayId = SurfaceComposerClient::getInternalDisplayId(); if (!displayId) { fprintf(stderr, "Failed to get ID for internal display\n"); const std::vector<PhysicalDisplayId> ids = SurfaceComposerClient::getPhysicalDisplayIds(); if (ids.empty()) { fprintf(stderr, "Failed to get ID for any displays\n"); return 1; } gPhysicalDisplayId = *displayId; gPhysicalDisplayId = ids.front(); while (true) { int optionIndex = 0; Loading
cmds/stagefright/codec.cpp +4 −1 Original line number Diff line number Diff line Loading @@ -411,7 +411,10 @@ int main(int argc, char **argv) { composerClient = new SurfaceComposerClient; CHECK_EQ(composerClient->initCheck(), (status_t)OK); const sp<IBinder> display = SurfaceComposerClient::getInternalDisplayToken(); const std::vector<PhysicalDisplayId> ids = SurfaceComposerClient::getPhysicalDisplayIds(); CHECK(!ids.empty()); const sp<IBinder> display = SurfaceComposerClient::getPhysicalDisplayToken(ids.front()); CHECK(display != nullptr); ui::DisplayMode mode; Loading
cmds/stagefright/mediafilter.cpp +4 −1 Original line number Diff line number Diff line Loading @@ -749,7 +749,10 @@ int main(int argc, char **argv) { composerClient = new SurfaceComposerClient; CHECK_EQ((status_t)OK, composerClient->initCheck()); const android::sp<IBinder> display = SurfaceComposerClient::getInternalDisplayToken(); const std::vector<PhysicalDisplayId> ids = SurfaceComposerClient::getPhysicalDisplayIds(); CHECK(!ids.empty()); const android::sp<IBinder> display = SurfaceComposerClient::getPhysicalDisplayToken(ids.front()); CHECK(display != nullptr); ui::DisplayMode mode; Loading
cmds/stagefright/stream.cpp +7 −1 Original line number Diff line number Diff line Loading @@ -318,7 +318,13 @@ int main(int argc, char **argv) { sp<SurfaceComposerClient> composerClient = new SurfaceComposerClient; CHECK_EQ(composerClient->initCheck(), (status_t)OK); const sp<IBinder> display = SurfaceComposerClient::getInternalDisplayToken(); const std::vector<PhysicalDisplayId> ids = SurfaceComposerClient::getPhysicalDisplayIds(); if (ids.empty()) { SLOGE("Failed to get ID for any displays\n"); return 1; } const sp<IBinder> display = SurfaceComposerClient::getPhysicalDisplayToken(ids.front()); CHECK(display != nullptr); ui::DisplayMode mode; Loading