diff --git a/image_publisher/src/image_publisher.cpp b/image_publisher/src/image_publisher.cpp index dc7e845b1..25d6e5b52 100644 --- a/image_publisher/src/image_publisher.cpp +++ b/image_publisher/src/image_publisher.cpp @@ -143,8 +143,8 @@ void ImagePublisher::doWork() if (cap_.isOpened()) { if (!cap_.read(image_)) { cap_.set(cv::CAP_PROP_POS_FRAMES, 0); - image_flipped_ = false; } + image_flipped_ = false; } if (flip_image_ && !image_flipped_) { cv::flip(image_, image_, flip_value_);