X-Git-Url: https://git.nihav.org/?p=nihav-tool.git;a=blobdiff_plain;f=src%2Fmain.rs;fp=src%2Fmain.rs;h=78c9fb09ec0bfe3057d6d2e7b8a2ba3398abab9f;hp=fcf6a56f8408d0a233fdd881f6db196d892ae7fd;hb=b338b484198691ee7d117a79326af52ae3e1c181;hpb=081797c71bd8cd4342d58a2124cbd7f72d02b7d2 diff --git a/src/main.rs b/src/main.rs index fcf6a56..78c9fb0 100644 --- a/src/main.rs +++ b/src/main.rs @@ -308,7 +308,7 @@ println!("stream {} - {} {}", i, s, info.get_name()); } }, }; - if pkt.get_pts() != None && lastpts != NATimePoint::None && !pkt.ts.less_than(lastpts) { break; } + if pkt.get_pts().is_some() && lastpts != NATimePoint::None && !pkt.ts.less_than(lastpts) { break; } } } //panic!("end");