mirror of
https://github.com/l1npengtul/nokhwa.git
synced 2026-07-04 02:27:26 +00:00
bump versions fix wgpu errors
This commit is contained in:
+1
-1
@@ -71,7 +71,7 @@ version = "23"
|
||||
optional = true
|
||||
|
||||
[dependencies.opencv]
|
||||
version = "0.94"
|
||||
version = "0.95"
|
||||
default-features = false
|
||||
optional = true
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ edition = "2021"
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
||||
image = "0.24.5"
|
||||
image = "0.25"
|
||||
|
||||
[dependencies.nokhwa-core]
|
||||
path = "../../nokhwa-core"
|
||||
|
||||
@@ -14,17 +14,15 @@ keywords = ["media-foundation", "windows", "capture", "webcam"]
|
||||
docs-only = []
|
||||
|
||||
[dependencies]
|
||||
once_cell = "1"
|
||||
|
||||
[dependencies.nokhwa-core]
|
||||
version = "0.1"
|
||||
path = "../nokhwa-core"
|
||||
|
||||
[target.'cfg(target_os="windows")'.dependencies.windows]
|
||||
version = "0.43"
|
||||
version = "0.61"
|
||||
features = ["Win32_Media_MediaFoundation", "Win32_System_Com", "Win32_Foundation", "Win32_Media_DirectShow", "Win32_Media", "Win32", "Win32_Media_KernelStreaming"]
|
||||
|
||||
[target.'cfg(target_os="windows")'.dependencies.once_cell]
|
||||
version = "1.16"
|
||||
|
||||
[package.metadata.docs.rs]
|
||||
features = ["docs-only"]
|
||||
|
||||
@@ -175,7 +175,7 @@ pub mod wmf {
|
||||
pub fn initialize_mf() -> Result<(), NokhwaError> {
|
||||
if !(INITIALIZED.load(Ordering::SeqCst)) {
|
||||
if let Err(why) = unsafe {
|
||||
CoInitializeEx(None, CO_INIT_APARTMENT_THREADED | CO_INIT_DISABLE_OLE1DDE)
|
||||
CoInitializeEx(None, CO_INIT_APARTMENT_THREADED | CO_INIT_DISABLE_OLE1DDE).ok()
|
||||
} {
|
||||
return Err(NokhwaError::InitializeError {
|
||||
backend: ApiBackend::MediaFoundation,
|
||||
|
||||
@@ -37,7 +37,7 @@ version = "23"
|
||||
optional = true
|
||||
|
||||
[dependencies.opencv]
|
||||
version = "0.94"
|
||||
version = "0.95"
|
||||
optional = true
|
||||
|
||||
[dependencies.bytemuck]
|
||||
|
||||
Reference in New Issue
Block a user