mirror of
https://github.com/l1npengtul/nokhwa.git
synced 2026-07-04 02:27:26 +00:00
fix opencv, v4l2, jscam, deprecate gst, ipcam
This commit is contained in:
@@ -1244,8 +1244,6 @@ pub mod wmf {
|
||||
))
|
||||
}
|
||||
|
||||
struct Empty;
|
||||
|
||||
pub struct MediaFoundationDevice {
|
||||
camera: CameraIndex,
|
||||
}
|
||||
@@ -1317,7 +1315,7 @@ pub mod wmf {
|
||||
))
|
||||
}
|
||||
|
||||
pub fn raw_bytes(&mut self) -> Result<Cow<'a, [u8]>, NokhwaError> {
|
||||
pub fn raw_bytes(&mut self) -> Result<Cow<[u8]>, NokhwaError> {
|
||||
Err(NokhwaError::NotImplementedError(
|
||||
"Only on Windows".to_string(),
|
||||
))
|
||||
@@ -1326,7 +1324,7 @@ pub mod wmf {
|
||||
pub fn stop_stream(&mut self) {}
|
||||
}
|
||||
|
||||
impl<'a> Drop for MediaFoundationDevice<'a> {
|
||||
impl Drop for MediaFoundationDevice {
|
||||
fn drop(&mut self) {}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user