diff options
author | François Laignel <fengalin@free.fr> | 2022-10-08 19:29:10 +0300 |
---|---|---|
committer | François Laignel <fengalin@free.fr> | 2022-10-08 19:29:10 +0300 |
commit | 7818ac658b02417fda071ce025b6d6a7fdb54a76 (patch) | |
tree | 81a171d5f7e5482d6874be18387a695e339d5e45 /video | |
parent | 4c57a97d4d6057bdd1c4b58b256cd153d21d7d3f (diff) |
Use `GFV::none_for_format` where applicable
Diffstat (limited to 'video')
-rw-r--r-- | video/closedcaption/src/lib.rs | 1 | ||||
-rw-r--r-- | video/closedcaption/src/mcc_enc/imp.rs | 6 | ||||
-rw-r--r-- | video/closedcaption/src/scc_enc/imp.rs | 6 |
3 files changed, 7 insertions, 6 deletions
diff --git a/video/closedcaption/src/lib.rs b/video/closedcaption/src/lib.rs index a42039937..107a940b8 100644 --- a/video/closedcaption/src/lib.rs +++ b/video/closedcaption/src/lib.rs @@ -14,6 +14,7 @@ * Since: plugins-rs-0.4.0 */ use gst::glib; +#[cfg(feature = "doc")] use gst::prelude::*; #[allow(non_camel_case_types, non_upper_case_globals, unused)] diff --git a/video/closedcaption/src/mcc_enc/imp.rs b/video/closedcaption/src/mcc_enc/imp.rs index a401450ec..54c4f9180 100644 --- a/video/closedcaption/src/mcc_enc/imp.rs +++ b/video/closedcaption/src/mcc_enc/imp.rs @@ -407,11 +407,11 @@ impl MccEnc { match query.view_mut() { QueryViewMut::Seeking(q) => { // We don't support any seeking at all - let fmt = q.format(); + let format = q.format(); q.set( false, - gst::GenericFormattedValue::Other(fmt, -1), - gst::GenericFormattedValue::Other(fmt, -1), + gst::GenericFormattedValue::none_for_format(format), + gst::GenericFormattedValue::none_for_format(format), ); true } diff --git a/video/closedcaption/src/scc_enc/imp.rs b/video/closedcaption/src/scc_enc/imp.rs index d8ef2547c..93f5d79af 100644 --- a/video/closedcaption/src/scc_enc/imp.rs +++ b/video/closedcaption/src/scc_enc/imp.rs @@ -343,11 +343,11 @@ impl SccEnc { match query.view_mut() { QueryViewMut::Seeking(q) => { // We don't support any seeking at all - let fmt = q.format(); + let format = q.format(); q.set( false, - gst::GenericFormattedValue::Other(fmt, -1), - gst::GenericFormattedValue::Other(fmt, -1), + gst::GenericFormattedValue::none_for_format(format), + gst::GenericFormattedValue::none_for_format(format), ); true } |