- Timestamp:
- 20/08/08 23:18:00 (3 months ago)
- git-parent:
- Files:
-
- modules/video_output/x11/xcommon.c (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
modules/video_output/x11/xcommon.c
rec3579f r131a15b 139 139 140 140 #if defined(MODULE_NAME_IS_xvideo) || defined(MODULE_NAME_IS_xvmc) 141 static int XVideoGetPort ( vout_thread_t *, vlc_fourcc_t, vlc_fourcc_t * );141 static int XVideoGetPort ( vout_thread_t *, vlc_fourcc_t, picture_heap_t * ); 142 142 static void XVideoReleasePort( vout_thread_t *, int ); 143 143 #endif … … 260 260 /* Check that we have access to an XVideo port providing this chroma */ 261 261 p_vout->p_sys->i_xvport = XVideoGetPort( p_vout, VLC2X11_FOURCC(i_chroma), 262 &p_vout->output .i_chroma);262 &p_vout->output ); 263 263 if( p_vout->p_sys->i_xvport < 0 ) 264 264 { … … 277 277 p_vout->p_sys->i_xvport = 278 278 XVideoGetPort( p_vout, X11_FOURCC('Y','U','Y','2'), 279 &p_vout->output .i_chroma);279 &p_vout->output ); 280 280 if( p_vout->p_sys->i_xvport < 0 ) 281 281 { … … 285 285 p_vout->p_sys->i_xvport = 286 286 XVideoGetPort( p_vout, X11_FOURCC('R','V','1','6'), 287 &p_vout->output .i_chroma);287 &p_vout->output ); 288 288 if( p_vout->p_sys->i_xvport < 0 ) 289 289 { … … 822 822 p_vout->fmt_out.i_chroma = p_vout->output.i_chroma; 823 823 824 #if XvVersion < 2 || ( XvVersion == 2 && XvRevision < 2 ) 824 825 switch( p_vout->output.i_chroma ) 825 826 { … … 847 848 break; 848 849 } 850 #endif 849 851 850 852 #elif defined(MODULE_NAME_IS_x11) … … 2462 2464 *****************************************************************************/ 2463 2465 static int XVideoGetPort( vout_thread_t *p_vout, 2464 vlc_fourcc_t i_chroma, vlc_fourcc_t *pi_newchroma)2466 vlc_fourcc_t i_chroma, picture_heap_t *p_heap ) 2465 2467 { 2466 2468 XvAdaptorInfo *p_adaptor; … … 2565 2567 { 2566 2568 i_selected_port = i_port; 2567 *pi_newchroma = p_formats[ i_format ].id; 2569 p_heap->i_chroma = p_formats[ i_format ].id; 2570 #if XvVersion > 2 || ( XvVersion == 2 && XvRevision >= 2 ) 2571 p_heap->i_rmask = p_formats[ i_format ].red_mask; 2572 p_heap->i_gmask = p_formats[ i_format ].green_mask; 2573 p_heap->i_bmask = p_formats[ i_format ].blue_mask; 2574 #endif 2568 2575 } 2569 2576 }
