Stop video streaming. 停止视频流。
(&mut self)
| 175 | /// Stop video streaming. |
| 176 | /// 停止视频流。 |
| 177 | pub fn stop(&mut self) -> Result<()> { |
| 178 | if !self.streaming { |
| 179 | return Ok(()); |
| 180 | } |
| 181 | v4l2_sys::stream_off(self.fd)?; |
| 182 | self.streaming = false; |
| 183 | self.pending_queue = None; |
| 184 | Ok(()) |
| 185 | } |
| 186 | |
| 187 | /// Dequeue a frame from the driver (blocking). |
| 188 | /// 从驱动出队一帧(阻塞)。 |