mirror of
https://github.com/infiniteCable2/openpilot.git
synced 2026-08-21 16:33:43 +08:00
encoder: remove function publisher_init, init PubMaster in constructor (#28980)
old-commit-hash: 65fe3c8c344233832e6aa79a2007ff5624a2c914
This commit is contained in:
@@ -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}));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user