Mercurial > vxvideo
comparison src/main.rs @ 2:1a2852861d8b default tip
Log which video stream has been selected.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Thu, 19 Nov 2020 21:38:08 +0100 |
parents | 4adea0a8c8dd |
children |
comparison
equal
deleted
inserted
replaced
1:4adea0a8c8dd | 2:1a2852861d8b |
---|---|
148 if resolution != wanted_resolution { | 148 if resolution != wanted_resolution { |
149 println!("Skipping {} due to resolution {}", video_name, resolution); | 149 println!("Skipping {} due to resolution {}", video_name, resolution); |
150 vxvideo.seek(SeekFrom::Current(length as i64))?; | 150 vxvideo.seek(SeekFrom::Current(length as i64))?; |
151 continue; | 151 continue; |
152 } | 152 } |
153 println!("Picking {}", video_name); | |
153 name = Some(video_name); | 154 name = Some(video_name); |
154 } | 155 } |
155 let mut buf = Vec::with_capacity(length as usize); | 156 let mut buf = Vec::with_capacity(length as usize); |
156 unsafe { buf.set_len(length as usize) }; | 157 unsafe { buf.set_len(length as usize) }; |
157 vxvideo.read_exact(&mut buf)?; | 158 vxvideo.read_exact(&mut buf)?; |