diff --git a/src/video_output/control.c b/src/video_output/control.c index 57bb45f89553b332076382849e51507c057713fe..96cb186c894dd582d32674a40449ac27fbab1fd2 100644 --- a/src/video_output/control.c +++ b/src/video_output/control.c @@ -134,6 +134,14 @@ void vout_control_PushBool(vout_control_t *ctrl, int type, bool boolean) cmd.u.boolean = boolean; vout_control_Push(ctrl, &cmd); } +void vout_control_PushInteger(vout_control_t *ctrl, int type, int integer) +{ + vout_control_cmd_t cmd; + + vout_control_cmd_Init(&cmd, type); + cmd.u.integer = integer; + vout_control_Push(ctrl, &cmd); +} void vout_control_PushTime(vout_control_t *ctrl, int type, mtime_t time) { vout_control_cmd_t cmd; diff --git a/src/video_output/control.h b/src/video_output/control.h index c9c1cf0890f1a8d280f977802b5feb193a3181f6..6e1f7d7f6a2e958183be730189c5d1201064fbec 100644 --- a/src/video_output/control.h +++ b/src/video_output/control.h @@ -68,6 +68,7 @@ typedef struct { mtime_t time; mtime_t *time_ptr; char *string; + int integer; struct { int a; int b; @@ -123,6 +124,7 @@ void vout_control_WaitEmpty(vout_control_t *); void vout_control_Push(vout_control_t *, vout_control_cmd_t *); void vout_control_PushVoid(vout_control_t *, int type); void vout_control_PushBool(vout_control_t *, int type, bool boolean); +void vout_control_PushInteger(vout_control_t *, int type, int integer); void vout_control_PushTime(vout_control_t *, int type, mtime_t time); void vout_control_PushMessage(vout_control_t *, int type, int channel, const char *string); void vout_control_PushPair(vout_control_t *, int type, int a, int b);