Skip to content

Commit a6d2cd8

Browse files
committed
disp/omt: Add help
1 parent 5280bf1 commit a6d2cd8

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

src/video_display/omt.cpp

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,22 @@ void init_send(state_vdisp_omt *s){
110110
s->omt_video_frame.Timestamp = -1;
111111
}
112112

113+
void show_help(){
114+
color_printf("Open Media Transport\n");
115+
color_printf("Usage\n");
116+
color_printf(TERM_BOLD TERM_FG_RED "\t-d omt\n" TERM_RESET);
117+
color_printf("\n");
118+
}
119+
113120
void *display_omt_init(module */*parent*/, const char *fmt, unsigned int /*flags*/){
114121
auto s = std::make_unique<state_vdisp_omt>();
115122

123+
using namespace std::string_view_literals;
124+
if(fmt == "help"sv){
125+
show_help();
126+
return INIT_NOERR;
127+
}
128+
116129
ug_register_omt_log_callback();
117130

118131
constexpr size_t max_frames = 3;

0 commit comments

Comments
 (0)