mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-06-06 23:48:57 +00:00
Use GFV::none_for_format
where applicable
This commit is contained in:
parent
4c57a97d4d
commit
7818ac658b
5 changed files with 11 additions and 10 deletions
|
@ -276,8 +276,8 @@ impl Encrypter {
|
||||||
let format = q.format();
|
let format = q.format();
|
||||||
q.set(
|
q.set(
|
||||||
false,
|
false,
|
||||||
gst::GenericFormattedValue::Other(format, -1),
|
gst::GenericFormattedValue::none_for_format(format),
|
||||||
gst::GenericFormattedValue::Other(format, -1),
|
gst::GenericFormattedValue::none_for_format(format),
|
||||||
);
|
);
|
||||||
gst::log!(CAT, obj: pad, "Returning {:?}", q.query_mut());
|
gst::log!(CAT, obj: pad, "Returning {:?}", q.query_mut());
|
||||||
true
|
true
|
||||||
|
|
|
@ -1620,8 +1620,8 @@ impl ToggleRecord {
|
||||||
let format = q.format();
|
let format = q.format();
|
||||||
q.set(
|
q.set(
|
||||||
false,
|
false,
|
||||||
gst::GenericFormattedValue::new(format, -1),
|
gst::GenericFormattedValue::none_for_format(format),
|
||||||
gst::GenericFormattedValue::new(format, -1),
|
gst::GenericFormattedValue::none_for_format(format),
|
||||||
);
|
);
|
||||||
|
|
||||||
gst::log!(CAT, obj: pad, "Returning {:?}", q.query_mut());
|
gst::log!(CAT, obj: pad, "Returning {:?}", q.query_mut());
|
||||||
|
|
|
@ -14,6 +14,7 @@
|
||||||
* Since: plugins-rs-0.4.0
|
* Since: plugins-rs-0.4.0
|
||||||
*/
|
*/
|
||||||
use gst::glib;
|
use gst::glib;
|
||||||
|
#[cfg(feature = "doc")]
|
||||||
use gst::prelude::*;
|
use gst::prelude::*;
|
||||||
|
|
||||||
#[allow(non_camel_case_types, non_upper_case_globals, unused)]
|
#[allow(non_camel_case_types, non_upper_case_globals, unused)]
|
||||||
|
|
|
@ -407,11 +407,11 @@ impl MccEnc {
|
||||||
match query.view_mut() {
|
match query.view_mut() {
|
||||||
QueryViewMut::Seeking(q) => {
|
QueryViewMut::Seeking(q) => {
|
||||||
// We don't support any seeking at all
|
// We don't support any seeking at all
|
||||||
let fmt = q.format();
|
let format = q.format();
|
||||||
q.set(
|
q.set(
|
||||||
false,
|
false,
|
||||||
gst::GenericFormattedValue::Other(fmt, -1),
|
gst::GenericFormattedValue::none_for_format(format),
|
||||||
gst::GenericFormattedValue::Other(fmt, -1),
|
gst::GenericFormattedValue::none_for_format(format),
|
||||||
);
|
);
|
||||||
true
|
true
|
||||||
}
|
}
|
||||||
|
|
|
@ -343,11 +343,11 @@ impl SccEnc {
|
||||||
match query.view_mut() {
|
match query.view_mut() {
|
||||||
QueryViewMut::Seeking(q) => {
|
QueryViewMut::Seeking(q) => {
|
||||||
// We don't support any seeking at all
|
// We don't support any seeking at all
|
||||||
let fmt = q.format();
|
let format = q.format();
|
||||||
q.set(
|
q.set(
|
||||||
false,
|
false,
|
||||||
gst::GenericFormattedValue::Other(fmt, -1),
|
gst::GenericFormattedValue::none_for_format(format),
|
||||||
gst::GenericFormattedValue::Other(fmt, -1),
|
gst::GenericFormattedValue::none_for_format(format),
|
||||||
);
|
);
|
||||||
true
|
true
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue