mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-11-23 20:10:59 +00:00
mcc_enc: Remove unused fields
These fields were never initialized in the first place.
This commit is contained in:
parent
23071c1e0e
commit
02655a9dce
1 changed files with 0 additions and 14 deletions
|
@ -44,8 +44,6 @@ enum Format {
|
|||
struct State {
|
||||
format: Option<Format>,
|
||||
need_headers: bool,
|
||||
start_position: gst::ClockTime,
|
||||
last_position: gst::ClockTime,
|
||||
}
|
||||
|
||||
impl Default for State {
|
||||
|
@ -53,8 +51,6 @@ impl Default for State {
|
|||
Self {
|
||||
format: None,
|
||||
need_headers: true,
|
||||
start_position: gst::CLOCK_TIME_NONE,
|
||||
last_position: gst::CLOCK_TIME_NONE,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -472,16 +468,6 @@ impl MccEnc {
|
|||
);
|
||||
true
|
||||
}
|
||||
QueryView::Position(ref mut q) => {
|
||||
// For Time answer ourselfs, otherwise forward
|
||||
if q.get_format() == gst::Format::Time {
|
||||
let state = self.state.lock().unwrap();
|
||||
q.set(state.last_position);
|
||||
true
|
||||
} else {
|
||||
self.sinkpad.peer_query(query)
|
||||
}
|
||||
}
|
||||
_ => pad.query_default(element, query),
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue