Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sdroege/gst-plugin-rs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/video
diff options
context:
space:
mode:
authorFrançois Laignel <fengalin@free.fr>2022-10-08 19:29:10 +0300
committerFrançois Laignel <fengalin@free.fr>2022-10-08 19:29:10 +0300
commit7818ac658b02417fda071ce025b6d6a7fdb54a76 (patch)
tree81a171d5f7e5482d6874be18387a695e339d5e45 /video
parent4c57a97d4d6057bdd1c4b58b256cd153d21d7d3f (diff)
Use `GFV::none_for_format` where applicable
Diffstat (limited to 'video')
-rw-r--r--video/closedcaption/src/lib.rs1
-rw-r--r--video/closedcaption/src/mcc_enc/imp.rs6
-rw-r--r--video/closedcaption/src/scc_enc/imp.rs6
3 files changed, 7 insertions, 6 deletions
diff --git a/video/closedcaption/src/lib.rs b/video/closedcaption/src/lib.rs
index a4203993..107a940b 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 a401450e..54c4f918 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 d8ef2547..93f5d79a 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
}