[vlc-devel] commit: XCB/XVideo: implement pf_control: handle zoom and stay-on-top ( Rémi Denis-Courmont )

git version control git at videolan.org
Thu May 7 22:59:22 CEST 2009


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu May  7 23:00:29 2009 +0300| [14670f9c97a17b061bdab7ef22530d1da1c9dcf6] | committer: Rémi Denis-Courmont 

XCB/XVideo: implement pf_control: handle zoom and stay-on-top

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

 modules/video_output/xcb/xvideo.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/modules/video_output/xcb/xvideo.c b/modules/video_output/xcb/xvideo.c
index a823050..c1c5895 100644
--- a/modules/video_output/xcb/xvideo.c
+++ b/modules/video_output/xcb/xvideo.c
@@ -86,6 +86,7 @@ static int Init (vout_thread_t *);
 static void Deinit (vout_thread_t *);
 static void Display (vout_thread_t *, picture_t *);
 static int Manage (vout_thread_t *);
+static int Control (vout_thread_t *, int, va_list);
 
 int CheckError (vout_thread_t *vout, const char *str, xcb_void_cookie_t ck)
 {
@@ -208,6 +209,7 @@ static int Open (vlc_object_t *obj)
     vout->pf_end = Deinit;
     vout->pf_display = Display;
     vout->pf_manage = Manage;
+    vout->pf_control = Control;
     return VLC_SUCCESS;
 
 error:
@@ -577,3 +579,8 @@ HandleParentStructure (vout_thread_t *vout, xcb_connection_t *conn,
     vout->p_sys->width = width;
     vout->p_sys->height = height;
 }
+
+static int Control (vout_thread_t *vout, int query, va_list ap)
+{
+    return vout_ControlWindow (vout->p_sys->embed, query, ap);
+}




More information about the vlc-devel mailing list