@@ -117,6 +117,7 @@ enum _US_OPT_VALUES {
117
117
# ifdef WITH_PDEATHSIG
118
118
_O_EXIT_ON_PARENT_DEATH ,
119
119
# endif
120
+ _O_EXIT_ON_DEVICE_ERROR ,
120
121
_O_EXIT_ON_NO_CLIENTS ,
121
122
# ifdef WITH_SETPROCTITLE
122
123
_O_PROCESS_NAME_PREFIX ,
@@ -227,6 +228,7 @@ static const struct option _LONG_OPTS[] = {
227
228
# ifdef WITH_PDEATHSIG
228
229
{"exit-on-parent-death" , no_argument , NULL , _O_EXIT_ON_PARENT_DEATH },
229
230
# endif
231
+ {"exit-on-device-error" , no_argument , NULL , _O_EXIT_ON_DEVICE_ERROR },
230
232
{"exit-on-no-clients" , required_argument , NULL , _O_EXIT_ON_NO_CLIENTS },
231
233
# ifdef WITH_SETPROCTITLE
232
234
{"process-name-prefix" , required_argument , NULL , _O_PROCESS_NAME_PREFIX },
@@ -490,6 +492,7 @@ int options_parse(us_options_s *options, us_capture_s *cap, us_encoder_s *enc, u
490
492
};
491
493
break ;
492
494
# endif
495
+ case _O_EXIT_ON_DEVICE_ERROR : OPT_SET (stream -> exit_on_device_error , true);
493
496
case _O_EXIT_ON_NO_CLIENTS : OPT_NUMBER ("--exit-on-no-clients" , stream -> exit_on_no_clients , 0 , 86400 , 0 );
494
497
# ifdef WITH_SETPROCTITLE
495
498
case _O_PROCESS_NAME_PREFIX : OPT_SET (process_name_prefix , optarg );
0 commit comments