forge
Explore
Log in

Don't you dare go Hollow

U18: ec-mpegts remove the two if blocks left empty by the Stats removal (clippy empty_if)

Browse files at this commit

ae1754b47b6f1a9b7509c9a94a35ec4021f2fceaAhmet Kaan GümüşParent: 5b7f1f5
crates/ec-mpegts/src/demux.rsmodified+0 -4
@@ -411,8 +411,6 @@ impl<R: Read + Seek> TsDemuxer<R> {
411 {411 {
412 self.first_pcr.get_or_insert(pcr);412 self.first_pcr.get_or_insert(pcr);
413 }413 }
414- if h.discontinuity {
415- }
416 let is_psi = h.pid == 0 || self.programs.iter().any(|p| p.pmt_pid == h.pid);414 let is_psi = h.pid == 0 || self.programs.iter().any(|p| p.pmt_pid == h.pid);
417 let tracked = self.pid_map.get(&h.pid).copied();415 let tracked = self.pid_map.get(&h.pid).copied();
418 if !is_psi && tracked.is_none() {416 if !is_psi && tracked.is_none() {
@@ -611,8 +609,6 @@ impl<R: Read + Seek> TsDemuxer<R> {
611 if same {609 if same {
612 return;610 return;
613 }611 }
614- if self.pmt_seen {
615- }
616 self.pmt_seen = true;612 self.pmt_seen = true;
617 for ti in 0..self.tracks.len() {613 for ti in 0..self.tracks.len() {
618 let t = &self.tracks[ti];614 let t = &self.tracks[ti];