Skip to content

Commit

Permalink
Remove redundant TODOs
Browse files Browse the repository at this point in the history
  • Loading branch information
bjsowa committed Oct 10, 2024
1 parent ab8e269 commit 04384fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/libav_streamer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ static int dispatch_output_packet(void * opaque, uint8_t * buffer, int buffer_si
std::vector<uint8_t> 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)
Expand Down
3 changes: 1 addition & 2 deletions src/web_video_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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") {
Expand Down

0 comments on commit 04384fc

Please sign in to comment.