We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5280bf1 commit a6d2cd8Copy full SHA for a6d2cd8
1 file changed
src/video_display/omt.cpp
@@ -110,9 +110,22 @@ void init_send(state_vdisp_omt *s){
110
s->omt_video_frame.Timestamp = -1;
111
}
112
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
+
120
void *display_omt_init(module */*parent*/, const char *fmt, unsigned int /*flags*/){
121
auto s = std::make_unique<state_vdisp_omt>();
122
123
+ using namespace std::string_view_literals;
124
+ if(fmt == "help"sv){
125
+ show_help();
126
+ return INIT_NOERR;
127
+ }
128
129
ug_register_omt_log_callback();
130
131
constexpr size_t max_frames = 3;
0 commit comments