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

Subscribe function changes config globally #65

Open martiege opened 4 years ago

martiege commented 4 years ago

Take out the latest_config-variable as a reference instead of a copy. Ensuring that the code which changes the stop_frame variable is changed globally. Fixes "Could not capture frame" error produced when the number of frames exceeds the maximum number of frames in a video file.

Issue https://github.com/ros-drivers/video_stream_opencv/issues/61#issue-594011639