Show
Ignore:
Timestamp:
20/08/08 23:18:00 (3 months ago)
Author:
Laurent Aimar <fenrir@videolan.org>
git-committer:
Laurent Aimar <fenrir@videolan.org> 1219267080 +0200
git-parent:

[35a248f1ac6304b1a9931eaee786f36b224a92f9]

git-author:
Laurent Aimar <fenrir@videolan.org> 1219267080 +0200
Message:

Correctly set rgb mask for xvideo output too.

Files:

Legend:

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

    rec3579f r131a15b  
    139139 
    140140#if defined(MODULE_NAME_IS_xvideo) || defined(MODULE_NAME_IS_xvmc) 
    141 static int  XVideoGetPort    ( vout_thread_t *, vlc_fourcc_t, vlc_fourcc_t * ); 
     141static int  XVideoGetPort    ( vout_thread_t *, vlc_fourcc_t, picture_heap_t * ); 
    142142static void XVideoReleasePort( vout_thread_t *, int ); 
    143143#endif 
     
    260260    /* Check that we have access to an XVideo port providing this chroma */ 
    261261    p_vout->p_sys->i_xvport = XVideoGetPort( p_vout, VLC2X11_FOURCC(i_chroma), 
    262                                              &p_vout->output.i_chroma ); 
     262                                             &p_vout->output ); 
    263263    if( p_vout->p_sys->i_xvport < 0 ) 
    264264    { 
     
    277277        p_vout->p_sys->i_xvport = 
    278278                        XVideoGetPort( p_vout, X11_FOURCC('Y','U','Y','2'), 
    279                                                &p_vout->output.i_chroma ); 
     279                                               &p_vout->output ); 
    280280        if( p_vout->p_sys->i_xvport < 0 ) 
    281281        { 
     
    285285            p_vout->p_sys->i_xvport = 
    286286                            XVideoGetPort( p_vout, X11_FOURCC('R','V','1','6'), 
    287                                                    &p_vout->output.i_chroma ); 
     287                                                   &p_vout->output ); 
    288288            if( p_vout->p_sys->i_xvport < 0 ) 
    289289            { 
     
    822822    p_vout->fmt_out.i_chroma = p_vout->output.i_chroma; 
    823823 
     824#if XvVersion < 2 || ( XvVersion == 2 && XvRevision < 2 ) 
    824825    switch( p_vout->output.i_chroma ) 
    825826    { 
     
    847848            break; 
    848849    } 
     850#endif 
    849851 
    850852#elif defined(MODULE_NAME_IS_x11) 
     
    24622464 *****************************************************************************/ 
    24632465static 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
    24652467{ 
    24662468    XvAdaptorInfo *p_adaptor; 
     
    25652567                { 
    25662568                    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 
    25682575                } 
    25692576            }