Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
yury committed Dec 19, 2024
1 parent 8227b56 commit 23efaab
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cidre/examples/vn-thumbnail-generator/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ fn calc_top_frames<'ear>(
let distance = feature_print.distance_to(&frame.observation)?;
if distance < SIMILARITY_THRESHOLD {
// Replace the frame if the new frame has a higher score.
if &new_frame.score > &frame.score {
if new_frame.score > frame.score {
frames[i] = new_frame.clone();
}
is_similar = true;
Expand Down
5 changes: 4 additions & 1 deletion cidre/src/av/capture/video_data_output.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ pub trait VideoDataOutputSampleBufDelegate: objc::Obj {
);
}

define_obj_type!(pub VideoDataOutput(Output), AV_CAPTURE_VIDEO_DATA_OUTPUT);
define_obj_type!(
#[doc(alias = "AVCaptureVideoDataOuput")]
pub VideoDataOutput(Output), AV_CAPTURE_VIDEO_DATA_OUTPUT
);

impl VideoDataOutput {
#[objc::msg_send(setSampleBufferDelegate:queue:)]
Expand Down

0 comments on commit 23efaab

Please sign in to comment.