Skip to content

Commit

Permalink
Release 0.7.14
Browse files Browse the repository at this point in the history
  • Loading branch information
alexheretic committed Feb 10, 2024
1 parent f3614ce commit 42bcdc1
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 26 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Unreleased
# v0.7.14
* Fix bash completions of some filenames.

# v0.7.13
Expand Down
42 changes: 21 additions & 21 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ab-av1"
version = "0.7.13"
version = "0.7.14"
authors = ["Alex Butler <alexheretic@gmail.com>"]
edition = "2021"
description = "AV1 encoding with fast VMAF sampling"
Expand Down
7 changes: 4 additions & 3 deletions src/command/sample_encode/cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ pub async fn cached_encode(

let key = Key(hash);

match tokio::task::spawn_blocking::<_, anyhow::Result<_>>(move || {
let cached = tokio::task::spawn_blocking::<_, anyhow::Result<_>>(move || {
let db = open_db()?;
Ok(match db.get(key.0.to_hex().as_bytes())? {
Some(data) => Some(serde_json::from_slice::<super::EncodeResult>(&data)?),
Expand All @@ -50,8 +50,9 @@ pub async fn cached_encode(
})
.await
.context("db.get task failed")
.and_then(|r| r)
{
.and_then(|r| r);

match cached {
Ok(Some(mut result)) => {
result.from_cache = true;
(Some(result), Some(key))
Expand Down

0 comments on commit 42bcdc1

Please sign in to comment.