mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-01-02 23:38:45 +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();
|
||||
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
|
||||
|
|
|
@ -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());
|
||||
|
|
|
@ -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)]
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue