ros-drivers / video_stream_opencv

A package to open video streams and publish them in ROS using the opencv videocapture mechanism
227 stars 159 forks source link

Node keeps sending last frame of file #23

Closed filipetrocadoferreira closed 5 years ago

filipetrocadoferreira commented 6 years ago

In case of reading a video file, the node keeps sending the last frame when it reaches the end of the file. Is this the desired behavior?

I can send a PR with the fix

awesomebytes commented 6 years ago

I believe that is not the desired behavior. I'd gladly accept a PR!

awesomebytes commented 5 years ago

Now if we reach the end of the file the program just finishes: https://github.com/ros-drivers/video_stream_opencv/commit/9091df4ef082063a29bfe345dd36d25a9f8ab935