Skip to content

Commit

Permalink
rpicam-detect: fix build of project
Browse files Browse the repository at this point in the history
Change passing of app parameter to BufferReadSync to be by reference.

Signed-off-by: Dan Heron <[email protected]>
  • Loading branch information
danheron authored and naushir committed Dec 5, 2023
1 parent b6ee440 commit 93ccdc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/rpicam_detect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ static void event_loop(RPiCamDetectApp &app)

StreamInfo info;
libcamera::Stream *stream = app.StillStream(&info);
BufferReadSync r(app, completed_request->buffers[stream]);
BufferReadSync r(&app, completed_request->buffers[stream]);
const std::vector<libcamera::Span<uint8_t>> mem = r.Get();

// Generate a filename for the output and save it.
Expand Down

0 comments on commit 93ccdc9

Please sign in to comment.