Changeset b687f9e9cff90c72eb4f51332a314d098da4ffe6

Show
Ignore:
Timestamp:
01/28/08 18:14:18 (7 months ago)
Author:
Rafaël Carré <funman@videolan.org>
git-committer:
Rafaël Carré <funman@videolan.org> 1201540458 +0000
git-parent:

[8728e7f2de59f4bd740ed0abe6e09a7c8fede9ec]

git-author:
Rafaël Carré <funman@videolan.org> 1201540458 +0000
Message:

xcommon.c: fix warnings

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/video_output/x11/xcommon.c

    r99fab90 rb687f9e  
    116116static void FreePicture    ( vout_thread_t *, picture_t * ); 
    117117 
     118#ifndef MODULE_NAME_IS_glx 
    118119static IMAGE_TYPE *CreateImage    ( vout_thread_t *, 
    119120                                    Display *, EXTRA_ARGS, int, int ); 
     121#endif 
     122 
    120123#ifdef HAVE_SYS_SHM_H 
     124#ifndef MODULE_NAME_IS_glx 
    121125static IMAGE_TYPE *CreateShmImage ( vout_thread_t *, 
    122126                                    Display *, EXTRA_ARGS_SHM, int, int ); 
     127#endif 
    123128static int i_shm_major = 0; 
    124129#endif 
     
    16141619    if( !p_vout->b_fullscreen ) 
    16151620    { 
    1616         p_win->owner_window = 
    1617             (Window)vout_RequestWindow( p_vout, &p_win->i_x, &p_win->i_y, 
     1621        p_win->owner_window = (Window)vout_RequestWindow( p_vout, &p_win->i_x, &p_win->i_y, 
    16181622                                        &p_win->i_width, &p_win->i_height ); 
    16191623 
     
    16831687                               p_win->base_window, &xsize_hints ); 
    16841688            XSetCommand( p_vout->p_sys->p_display, p_win->base_window, 
    1685                          p_vout->p_libvlc->ppsz_argv, p_vout->p_libvlc->i_argc ); 
     1689                         (char**)p_vout->p_libvlc->ppsz_argv, 
     1690                         p_vout->p_libvlc->i_argc ); 
    16861691 
    16871692            if( !var_GetBool( p_vout, "video-deco") ) 
     
    19711976                 i_plane++ ) 
    19721977            { 
    1973                 p_pic->p[i_plane].p_pixels = p_pic->p_sys->p_image->data 
     1978                p_pic->p[i_plane].p_pixels = (uint8_t*)p_pic->p_sys->p_image->data 
    19741979                    + p_pic->p_sys->p_image->offsets[i_plane]; 
    19751980                p_pic->p[i_plane].i_pitch = 
     
    19801985                /* U and V inverted compared to I420 
    19811986                 * Fixme: this should be handled by the vout core */ 
    1982                 p_pic->U_PIXELS = p_pic->p_sys->p_image->data 
     1987                p_pic->U_PIXELS = (uint8_t*)p_pic->p_sys->p_image->data 
    19831988                    + p_pic->p_sys->p_image->offsets[2]; 
    1984                 p_pic->V_PIXELS = p_pic->p_sys->p_image->data 
     1989                p_pic->V_PIXELS = (uint8_t*)p_pic->p_sys->p_image->data 
    19851990                    + p_pic->p_sys->p_image->offsets[1]; 
    19861991            } 
     
    19962001            p_pic->p->i_lines = p_pic->p_sys->p_image->height; 
    19972002            p_pic->p->i_visible_lines = p_pic->p_sys->p_image->height; 
    1998             p_pic->p->p_pixels = p_pic->p_sys->p_image->data 
     2003            p_pic->p->p_pixels = (uint8_t*)p_pic->p_sys->p_image->data 
    19992004                                  + p_pic->p_sys->p_image->xoffset; 
    20002005            p_pic->p->i_pitch = p_pic->p_sys->p_image->bytes_per_line; 
     
    20162021            return -1; 
    20172022    } 
     2023#else 
     2024 
     2025    VLC_UNUSED(p_vout); VLC_UNUSED(p_pic); 
    20182026 
    20192027#endif /* !MODULE_NAME_IS_glx */ 
     
    28012809} 
    28022810 
     2811#ifndef MODULE_NAME_IS_glx 
     2812 
    28032813#ifdef HAVE_SYS_SHM_H 
    28042814/***************************************************************************** 
     
    29602970} 
    29612971 
     2972#endif 
    29622973/***************************************************************************** 
    29632974 * X11ErrorHandler: replace error handler so we can intercept some of them 
     
    29812992    } 
    29822993 
     2994#ifdef HAVE_SYS_SHM_H 
    29832995    if( event->request_code == i_shm_major ) /* MIT-SHM */ 
    29842996        return i_shm_major = 0; 
     2997#endif 
    29852998 
    29862999    XSetErrorHandler(NULL);