encoder: remove function publisher_init, init PubMaster in constructor (#28980)

old-commit-hash: 65fe3c8c344233832e6aa79a2007ff5624a2c914
This commit is contained in:
Dean Lee
2023-07-18 10:25:41 +08:00
committed by GitHub
parent 4185aeb93b
commit bd93cd7db3
4 changed files with 4 additions and 15 deletions
+2 -5
View File
@@ -1,10 +1,7 @@
#include <cassert>
#include "system/loggerd/encoder/encoder.h"
VideoEncoder::~VideoEncoder() {}
void VideoEncoder::publisher_init() {
// publish
VideoEncoder::VideoEncoder(const EncoderInfo &encoder_info, int in_width, int in_height)
: encoder_info(encoder_info), in_width(in_width), in_height(in_height) {
pm.reset(new PubMaster({encoder_info.publish_name}));
}