Skip to content

Commit

Permalink
disable 'set variable' debugging commands by default.
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven Toth committed May 16, 2018
1 parent a8ff70d commit d8a17d0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion obe/obecli.c
Original file line number Diff line number Diff line change
Expand Up @@ -1053,7 +1053,7 @@ static int set_outputs( char *command, obecli_command_t *child )
return 0;
}


#if DO_SET_VARIABLE
/* Case 1 */
extern int g_decklink_fake_lost_payload;
extern time_t g_decklink_fake_lost_payload_time;
Expand Down Expand Up @@ -1142,6 +1142,7 @@ static int set_variable(char *command, obecli_command_t *child)

return 0;
}
#endif

static void display_verbose()
{
Expand Down
5 changes: 5 additions & 0 deletions obe/obecli.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ static int set_muxer( char *command, obecli_command_t *child );
static int set_output( char *command, obecli_command_t *child );
static int set_outputs( char *command, obecli_command_t *child );
static int set_verbose( char *command, obecli_command_t *child );
#if DO_SET_VARIABLE
static int set_variable( char *command, obecli_command_t *child );
#endif

static int show_bitdepth( char *command, obecli_command_t *child );
static int show_decoders( char *command, obecli_command_t *child );
Expand Down Expand Up @@ -150,7 +152,10 @@ static obecli_command_t set_commands[] =
{ "output", "opts outputid:[opts]", "Set output name or output opts", set_output, NULL },
{ "outputs", "[number]", "Set output name or output opts", set_outputs, NULL },
{ "verbose", "[number]", "Set verbosity level", set_verbose, NULL },
#define DO_SET_VARIABLE 0
#if DO_SET_VARIABLE
{ "variable", "[name = arg]", "Set variable name = arg", set_variable, NULL },
#endif
{ 0 }
};

Expand Down

0 comments on commit d8a17d0

Please sign in to comment.