Skip to content

Commit

Permalink
fix receiver
Browse files Browse the repository at this point in the history
  • Loading branch information
Mast3rwaf1z committed Dec 3, 2024
1 parent a6c9b08 commit fa1fe1a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Receiver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ int main(int argc, char* argv[]) {
for(const auto& x : Util::range(X)) {

for(const auto& y : Util::range(Y)) {
threads.push_back(std::thread{[x, y](){
threads.push_back(std::thread{[x, y, &parser](){
spdlog::info("Running thread: {} {}", x, y);
auto capture = await_capture(std::format("rtsp://0.0.0.0:8554/frame/{}/{}", x, y));
auto capture = await_capture(std::format("rtsp://{}:8554/frame/{}/{}", parser.get<std::string>("--address"), x, y));
while(true) {
cv::Mat frame;
capture.read(frame);
Expand Down

0 comments on commit fa1fe1a

Please sign in to comment.