projects
/
nihav-player.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8806754
)
nihed-cros-libva: get rid of log dependency
author
Kostya Shishkov
<kostya.shishkov@gmail.com>
Fri, 20 Oct 2023 16:33:27 +0000
(18:33 +0200)
committer
Kostya Shishkov
<kostya.shishkov@gmail.com>
Fri, 20 Oct 2023 16:33:27 +0000
(18:33 +0200)
nihed-cros-libva/Cargo.toml
patch
|
blob
|
blame
|
history
nihed-cros-libva/src/buffer.rs
patch
|
blob
|
blame
|
history
nihed-cros-libva/src/config.rs
patch
|
blob
|
blame
|
history
nihed-cros-libva/src/context.rs
patch
|
blob
|
blame
|
history
diff --git
a/nihed-cros-libva/Cargo.toml
b/nihed-cros-libva/Cargo.toml
index 6f88b97825ae3e2ac6ccbcba428a1a6eecda5a3d..b709fe034b864c70f5264657e21a195c40476ac7 100644
(file)
--- a/
nihed-cros-libva/Cargo.toml
+++ b/
nihed-cros-libva/Cargo.toml
@@
-9,7
+9,6
@@
edition = "2021"
[dependencies]
anyhow = "1"
bitflags = "1.3"
[dependencies]
anyhow = "1"
bitflags = "1.3"
-log = { version = "0", features = ["release_max_level_debug"] }
[build-dependencies]
pkg-config = "0.3.26"
[build-dependencies]
pkg-config = "0.3.26"
diff --git
a/nihed-cros-libva/src/buffer.rs
b/nihed-cros-libva/src/buffer.rs
index 41d59340b4ca95774ef4e6df747fadd32509bb51..62f8f510cfd388435de994f46322554d807f71c5 100644
(file)
--- a/
nihed-cros-libva/src/buffer.rs
+++ b/
nihed-cros-libva/src/buffer.rs
@@
-17,7
+17,6
@@
pub use vp9::*;
use std::rc::Rc;
use anyhow::Result;
use std::rc::Rc;
use anyhow::Result;
-use log::error;
use crate::bindings;
use crate::status::Status;
use crate::bindings;
use crate::status::Status;
@@
-136,7
+135,7
@@
impl Drop for Buffer {
Status(unsafe { bindings::vaDestroyBuffer(self.context.display().handle(), self.id) })
.check();
if status.is_err() {
Status(unsafe { bindings::vaDestroyBuffer(self.context.display().handle(), self.id) })
.check();
if status.is_err() {
-
error
!("vaDestroyBuffer failed: {}", status.unwrap_err());
+
println
!("vaDestroyBuffer failed: {}", status.unwrap_err());
}
}
}
}
}
}
diff --git
a/nihed-cros-libva/src/config.rs
b/nihed-cros-libva/src/config.rs
index f073150297959fbc93bdb464c9b68eb31aaeedd7..af1db852bc659a8fe726053fdea854be2ac4438c 100644
(file)
--- a/
nihed-cros-libva/src/config.rs
+++ b/
nihed-cros-libva/src/config.rs
@@
-5,7
+5,6
@@
use std::rc::Rc;
use anyhow::Result;
use std::rc::Rc;
use anyhow::Result;
-use log::error;
use crate::bindings;
use crate::display::Display;
use crate::bindings;
use crate::display::Display;
@@
-121,7
+120,7
@@
impl Drop for Config {
let status =
Status(unsafe { bindings::vaDestroyConfig(self.display.handle(), self.id) }).check();
if status.is_err() {
let status =
Status(unsafe { bindings::vaDestroyConfig(self.display.handle(), self.id) }).check();
if status.is_err() {
-
error
!("vaDestroyConfig failed: {}", status.unwrap_err());
+
println
!("vaDestroyConfig failed: {}", status.unwrap_err());
}
}
}
}
}
}
diff --git
a/nihed-cros-libva/src/context.rs
b/nihed-cros-libva/src/context.rs
index 45a5c45d4fcfe3002c37c50672fbe29d67cecef7..cc3136aa97c4ed2940439bb5ffd49adf9fce56f6 100644
(file)
--- a/
nihed-cros-libva/src/context.rs
+++ b/
nihed-cros-libva/src/context.rs
@@
-5,7
+5,6
@@
use std::rc::Rc;
use anyhow::Result;
use std::rc::Rc;
use anyhow::Result;
-use log::error;
use crate::bindings;
use crate::buffer::Buffer;
use crate::bindings;
use crate::buffer::Buffer;
@@
-89,7
+88,7
@@
impl Drop for Context {
let status =
Status(unsafe { bindings::vaDestroyContext(self.display.handle(), self.id) }).check();
if status.is_err() {
let status =
Status(unsafe { bindings::vaDestroyContext(self.display.handle(), self.id) }).check();
if status.is_err() {
-
error
!("vaDestroyContext failed: {}", status.unwrap_err());
+
println
!("vaDestroyContext failed: {}", status.unwrap_err());
}
}
}
}
}
}