mirror of
https://git.suyu.dev/suyu/Yucom.git
synced 2026-01-07 15:08:07 +01:00
media-converter: Add MEDIACONV_DONT_DISCARD
This commit is contained in:
parent
4070272852
commit
bf8ee8e554
3 changed files with 19 additions and 1 deletions
|
|
@ -33,6 +33,7 @@ use crate::HASH_SEED;
|
|||
use crate::box_array;
|
||||
use crate::copy_into_array;
|
||||
use crate::BufferedReader;
|
||||
use crate::discarding_disabled;
|
||||
|
||||
use gst;
|
||||
use gst::glib;
|
||||
|
|
@ -155,7 +156,11 @@ impl VideoConverterDumpFozdb {
|
|||
|
||||
fn discard_transcoded(&mut self) {
|
||||
if self.already_cleaned {
|
||||
return
|
||||
return;
|
||||
}
|
||||
if discarding_disabled() {
|
||||
self.already_cleaned = true;
|
||||
return;
|
||||
}
|
||||
if let Some(fozdb) = &mut self.open(false).fozdb {
|
||||
if let Ok(read_fozdb_path) = std::env::var("MEDIACONV_VIDEO_TRANSCODED_FILE") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue