mcc_enc: Remove unused fields

These fields were never initialized in the first place.
This commit is contained in:
Jordan Petridis 2019-02-07 13:26:52 +02:00 committed by Jordan Petridis
parent 23071c1e0e
commit 02655a9dce
No known key found for this signature in database
GPG key ID: E8523968931763BE

View file

@ -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),
}
}