Skip to content

Commit 47fb4c0

Browse files
committed
video_rxtx/omt: Remove some debug logging
1 parent 19feb7b commit 47fb4c0

1 file changed

Lines changed: 4 additions & 10 deletions

File tree

src/video_rxtx/omt.cpp

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ using omt_receive_uniq = std::unique_ptr<omt_receive_t, deleter_from_fcn<omt_rec
5454
using omt_send_uniq = std::unique_ptr<omt_send_t, deleter_from_fcn<omt_send_destroy>>;
5555

5656
void omt_log_callback(const char *msg){
57-
log_msg(LOG_LEVEL_INFO, MOD_NAME "OMTLOG: %s\n", msg);
57+
log_msg(LOG_LEVEL_INFO, MOD_NAME "[libomt] %s\n", msg);
5858
}
5959

6060
struct omt_rxtx_state{
@@ -133,7 +133,6 @@ bool send_reconfigure(omt_rxtx_state *s, struct video_desc frame_desc){
133133
s->send_video_frame.FrameRateN = frame_desc.fps * 1000.0;
134134
s->send_video_frame.FrameRateD = 1000;
135135
s->send_desc = frame_desc;
136-
log_msg(LOG_LEVEL_NOTICE, MOD_NAME "Reconf\n");
137136
return true;
138137
}
139138

@@ -149,9 +148,7 @@ void omt_rxtx_send_frame(void *state, std::shared_ptr<video_frame> f){
149148
s->send_video_frame.Data = f->tiles[0].data;
150149
s->send_video_frame.DataLength = f->tiles[0].data_len;
151150

152-
int ret = omt_send(s->omt_send_handle.get(), &s->send_video_frame);
153-
154-
log_msg(LOG_LEVEL_INFO, MOD_NAME "Send returned %d\n", ret);
151+
omt_send(s->omt_send_handle.get(), &s->send_video_frame);
155152
}
156153

157154
video_desc video_desc_from_omt_frame(const OMTMediaFrame *omt_frame){
@@ -166,13 +163,11 @@ video_desc video_desc_from_omt_frame(const OMTMediaFrame *omt_frame){
166163

167164
void *omt_rxtx_recv_worker(void *state){
168165
auto s = static_cast<omt_rxtx_state *>(state);
169-
register_should_exit_callback(s->parent,
170-
omt_should_exit_callback, state);
166+
register_should_exit_callback(s->parent, omt_should_exit_callback, s);
171167

172168
while(!s->should_exit){
173169
auto omt_frame = omt_receive(s->omt_recv_handle.get(), OMTFrameType_Video, 1000);
174170
if(!omt_frame){
175-
log_msg(LOG_LEVEL_INFO, MOD_NAME "Receive failed\n");
176171
continue;
177172
}
178173

@@ -191,8 +186,7 @@ void *omt_rxtx_recv_worker(void *state){
191186
}
192187

193188
display_put_frame(s->display_device, nullptr, PUTF_BLOCKING);
194-
unregister_should_exit_callback(s->parent,
195-
omt_should_exit_callback, s);
189+
unregister_should_exit_callback(s->parent, omt_should_exit_callback, s);
196190

197191
return nullptr;
198192
}

0 commit comments

Comments
 (0)