mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-09-27 14:30:27 +00:00
Fix a couple of compiler/clippy warnings with --no-default-features
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1457>
This commit is contained in:
parent
ed3b5934d8
commit
d0b944b2a7
1 changed files with 17 additions and 10 deletions
|
@ -984,16 +984,23 @@ impl FallbackSwitch {
|
|||
// be NONE by now
|
||||
let pts = buffer.pts().unwrap();
|
||||
|
||||
let mut builder = gst::event::Gap::builder(pts)
|
||||
.duration(buffer.duration())
|
||||
.seqnum(in_gap_event.seqnum());
|
||||
|
||||
let out_gap_event = {
|
||||
#[cfg(feature = "v1_20")]
|
||||
{
|
||||
builder = builder.gap_flags(in_gap_event.gap_flags());
|
||||
gst::event::Gap::builder(pts)
|
||||
.duration(buffer.duration())
|
||||
.seqnum(in_gap_event.seqnum())
|
||||
.gap_flags(in_gap_event.gap_flags())
|
||||
.build()
|
||||
}
|
||||
|
||||
let out_gap_event = builder.build();
|
||||
#[cfg(not(feature = "v1_20"))]
|
||||
{
|
||||
gst::event::Gap::builder(pts)
|
||||
.duration(buffer.duration())
|
||||
.seqnum(in_gap_event.seqnum())
|
||||
.build()
|
||||
}
|
||||
};
|
||||
|
||||
self.with_src_busy(|| {
|
||||
self.src_pad.push_event(out_gap_event);
|
||||
|
|
Loading…
Reference in a new issue