Changeset b687f9e9cff90c72eb4f51332a314d098da4ffe6
- 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
| r99fab90 |
rb687f9e |
|
| 116 | 116 | static void FreePicture ( vout_thread_t *, picture_t * ); |
|---|
| 117 | 117 | |
|---|
| | 118 | #ifndef MODULE_NAME_IS_glx |
|---|
| 118 | 119 | static IMAGE_TYPE *CreateImage ( vout_thread_t *, |
|---|
| 119 | 120 | Display *, EXTRA_ARGS, int, int ); |
|---|
| | 121 | #endif |
|---|
| | 122 | |
|---|
| 120 | 123 | #ifdef HAVE_SYS_SHM_H |
|---|
| | 124 | #ifndef MODULE_NAME_IS_glx |
|---|
| 121 | 125 | static IMAGE_TYPE *CreateShmImage ( vout_thread_t *, |
|---|
| 122 | 126 | Display *, EXTRA_ARGS_SHM, int, int ); |
|---|
| | 127 | #endif |
|---|
| 123 | 128 | static int i_shm_major = 0; |
|---|
| 124 | 129 | #endif |
|---|
| … | … | |
| 1614 | 1619 | if( !p_vout->b_fullscreen ) |
|---|
| 1615 | 1620 | { |
|---|
| 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, |
|---|
| 1618 | 1622 | &p_win->i_width, &p_win->i_height ); |
|---|
| 1619 | 1623 | |
|---|
| … | … | |
| 1683 | 1687 | p_win->base_window, &xsize_hints ); |
|---|
| 1684 | 1688 | 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 ); |
|---|
| 1686 | 1691 | |
|---|
| 1687 | 1692 | if( !var_GetBool( p_vout, "video-deco") ) |
|---|
| … | … | |
| 1971 | 1976 | i_plane++ ) |
|---|
| 1972 | 1977 | { |
|---|
| 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 |
|---|
| 1974 | 1979 | + p_pic->p_sys->p_image->offsets[i_plane]; |
|---|
| 1975 | 1980 | p_pic->p[i_plane].i_pitch = |
|---|
| … | … | |
| 1980 | 1985 | /* U and V inverted compared to I420 |
|---|
| 1981 | 1986 | * 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 |
|---|
| 1983 | 1988 | + 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 |
|---|
| 1985 | 1990 | + p_pic->p_sys->p_image->offsets[1]; |
|---|
| 1986 | 1991 | } |
|---|
| … | … | |
| 1996 | 2001 | p_pic->p->i_lines = p_pic->p_sys->p_image->height; |
|---|
| 1997 | 2002 | 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 |
|---|
| 1999 | 2004 | + p_pic->p_sys->p_image->xoffset; |
|---|
| 2000 | 2005 | p_pic->p->i_pitch = p_pic->p_sys->p_image->bytes_per_line; |
|---|
| … | … | |
| 2016 | 2021 | return -1; |
|---|
| 2017 | 2022 | } |
|---|
| | 2023 | #else |
|---|
| | 2024 | |
|---|
| | 2025 | VLC_UNUSED(p_vout); VLC_UNUSED(p_pic); |
|---|
| 2018 | 2026 | |
|---|
| 2019 | 2027 | #endif /* !MODULE_NAME_IS_glx */ |
|---|
| … | … | |
| 2801 | 2809 | } |
|---|
| 2802 | 2810 | |
|---|
| | 2811 | #ifndef MODULE_NAME_IS_glx |
|---|
| | 2812 | |
|---|
| 2803 | 2813 | #ifdef HAVE_SYS_SHM_H |
|---|
| 2804 | 2814 | /***************************************************************************** |
|---|
| … | … | |
| 2960 | 2970 | } |
|---|
| 2961 | 2971 | |
|---|
| | 2972 | #endif |
|---|
| 2962 | 2973 | /***************************************************************************** |
|---|
| 2963 | 2974 | * X11ErrorHandler: replace error handler so we can intercept some of them |
|---|
| … | … | |
| 2981 | 2992 | } |
|---|
| 2982 | 2993 | |
|---|
| | 2994 | #ifdef HAVE_SYS_SHM_H |
|---|
| 2983 | 2995 | if( event->request_code == i_shm_major ) /* MIT-SHM */ |
|---|
| 2984 | 2996 | return i_shm_major = 0; |
|---|
| | 2997 | #endif |
|---|
| 2985 | 2998 | |
|---|
| 2986 | 2999 | XSetErrorHandler(NULL); |
|---|