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

gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--generic/sodium/src/encrypter/imp.rs4
-rw-r--r--utils/togglerecord/src/togglerecord/imp.rs4
-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
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
}