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 | |
parent | 4c57a97d4d6057bdd1c4b58b256cd153d21d7d3f (diff) |
Use `GFV::none_for_format` where applicable
-rw-r--r-- | generic/sodium/src/encrypter/imp.rs | 4 | ||||
-rw-r--r-- | utils/togglerecord/src/togglerecord/imp.rs | 4 | ||||
-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 |
5 files changed, 11 insertions, 10 deletions
diff --git a/generic/sodium/src/encrypter/imp.rs b/generic/sodium/src/encrypter/imp.rs index fc7b0b4ce..b56080c23 100644 --- a/generic/sodium/src/encrypter/imp.rs +++ b/generic/sodium/src/encrypter/imp.rs @@ -276,8 +276,8 @@ impl Encrypter { let format = q.format(); q.set( false, - gst::GenericFormattedValue::Other(format, -1), - gst::GenericFormattedValue::Other(format, -1), + gst::GenericFormattedValue::none_for_format(format), + gst::GenericFormattedValue::none_for_format(format), ); gst::log!(CAT, obj: pad, "Returning {:?}", q.query_mut()); true diff --git a/utils/togglerecord/src/togglerecord/imp.rs b/utils/togglerecord/src/togglerecord/imp.rs index 5ebfb80d8..51ffeabec 100644 --- a/utils/togglerecord/src/togglerecord/imp.rs +++ b/utils/togglerecord/src/togglerecord/imp.rs @@ -1620,8 +1620,8 @@ impl ToggleRecord { let format = q.format(); q.set( false, - gst::GenericFormattedValue::new(format, -1), - gst::GenericFormattedValue::new(format, -1), + gst::GenericFormattedValue::none_for_format(format), + gst::GenericFormattedValue::none_for_format(format), ); gst::log!(CAT, obj: pad, "Returning {:?}", q.query_mut()); 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 } |