Skip to content

Commit 194cbea

Browse files
committed
silent fail when sending frames on windows
1 parent c5b388e commit 194cbea

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/capturer/engine/win/mod.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,7 @@ impl GraphicsCaptureApiHandler for Capturer {
116116
data: raw_frame_buffer.to_vec(),
117117
};
118118

119-
self.tx
120-
.send(Frame::Video(VideoFrame::BGRA(bgr_frame)))
121-
.expect("Failed to send data");
119+
let _ = self.tx.send(Frame::Video(VideoFrame::BGRA(bgr_frame)));
122120
}
123121
None => {
124122
// get raw frame buffer
@@ -136,9 +134,7 @@ impl GraphicsCaptureApiHandler for Capturer {
136134
data: frame_data,
137135
};
138136

139-
self.tx
140-
.send(Frame::Video(VideoFrame::BGRA(bgr_frame)))
141-
.expect("Failed to send data");
137+
let _ = self.tx.send(Frame::Video(VideoFrame::BGRA(bgr_frame)));
142138
}
143139
}
144140
Ok(())

0 commit comments

Comments
 (0)