[vlc-commits] commit: Added vout_control_PushInteger. (Laurent Aimar )

git at videolan.org git at videolan.org
Tue May 25 22:01:21 CEST 2010


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Tue May 25 21:13:53 2010 +0200| [b0ffce5e7e9250234dffe86aefde13fbdbefdd44] | committer: Laurent Aimar 

Added vout_control_PushInteger.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b0ffce5e7e9250234dffe86aefde13fbdbefdd44
---

 src/video_output/control.c |    8 ++++++++
 src/video_output/control.h |    2 ++
 2 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/src/video_output/control.c b/src/video_output/control.c
index 57bb45f..96cb186 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 c9c1cf0..6e1f7d7 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);



More information about the vlc-commits mailing list