[vlc-devel] problems compiling new function in video.c
Donoso Gabilondo, Daniel
donoso.d at ikusi.es
Wed Jul 5 10:42:45 CEST 2006
Hello again...
I added a new function to video.c file in vlc_tree/src/control/video.c to
move the vlc video window by other application (Linux).
void libvlc_setWindow_Position( libvlc_input_t *p_input, int iPosition_x,
int iPosition_y, libvlc_exception_t *p_e )
{
vout_thread_t *p_vout1 = GetVout( p_input, p_e );
if( !p_vout1 )
return;
XMoveWindow(p_vout1->p_sys->p_display,
p_vout1->p_sys->p_win->base_window, iPosition_x, iPosition_y);
}
When I compile with make, it shows these errors:
control/video.c: (XMovewindow line number):error: dereferencing pointer to
incomplete type
control/video.c: (XMovewindow line number):error: dereferencing pointer to
incomplete type
I made some these changes (I copied the x11_window_t definition to video.c
file to recognise it):
XMoveWindow( (Display *)(vout_sys_t *)(p_vout1->p_sys)->p_display ,
(x11_window_t *)((vout_sys_t *)(p_vout1->p_sys)->p_win)->base_window,
iPosition_x, iPosition_y);
And it shows the same errors:
control/video.c: (XMovewindow line number):error: dereferencing pointer to
incomplete type
control/video.c: (XMovewindow line number):error: dereferencing pointer to
incomplete type
I tried to do this too but with the same results:
vout_sys_t *p_my_sys = p_vout1->p_sys;
Display * p_my_display = (Display
*)(vout_sys_t*)(p_my_sys)->p_display; // IF I COMMENT THIS LINE IT COMPILES
WELL., IF IT IS UNCOMMENTED NOT
// COMMENTED LINE XMoveWindow( (Display *)(vout_sys_t
*)(p_vout1->p_sys)->p_display , (x11_window_t *)((vout_sys_t
*)(p_vout1->p_sys)->p_win)->base_window, iPosition_x, iPosition_y);
What I need to do to compile it well?
Regards,
Daniel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20060705/af3fef40/attachment.html>
More information about the vlc-devel
mailing list