From 04384fc0b9b7c7ea78add6ae61418c84af8bb182 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C5=82a=C5=BCej=20Sowa?= Date: Thu, 10 Oct 2024 11:17:34 +0000 Subject: [PATCH] Remove redundant TODOs --- src/libav_streamer.cpp | 2 +- src/web_video_server.cpp | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/libav_streamer.cpp b/src/libav_streamer.cpp index 978db8f..16ea546 100644 --- a/src/libav_streamer.cpp +++ b/src/libav_streamer.cpp @@ -84,7 +84,7 @@ static int dispatch_output_packet(void * opaque, uint8_t * buffer, int buffer_si std::vector encoded_frame; encoded_frame.assign(buffer, buffer + buffer_size); connection->write_and_clear(encoded_frame); - return 0; // TODO: can this fail? + return 0; } void LibavStreamer::initialize(const cv::Mat & img) diff --git a/src/web_video_server.cpp b/src/web_video_server.cpp index 6133b6e..27d1515 100644 --- a/src/web_video_server.cpp +++ b/src/web_video_server.cpp @@ -306,8 +306,7 @@ bool WebVideoServer::handle_list_streams( } auto & topic_name = topic_and_types.first; auto & topic_type = topic_and_types.second[0]; // explicitly take the first - // TODO debugging - fprintf(stderr, "topic_type: %s\n", topic_type.c_str()); + if (topic_type == "sensor_msgs/msg/Image") { image_topics.push_back(topic_name); } else if (topic_type == "sensor_msgs/msg/CameraInfo") {