Changeset d2d85545649c486677a45879590776402d664115

Show
Ignore:
Timestamp:
25/02/08 22:44:24 (7 months ago)
Author:
Jean-Baptiste Kempf <jb@videolan.org>
git-committer:
Jean-Baptiste Kempf <jb@videolan.org> 1203975864 +0000
git-parent:

[8b8b4f54fc546470da7b21e5c130f937606a89d1]

git-author:
Jean-Baptiste Kempf <jb@videolan.org> 1203975864 +0000
Message:

XvMC: remove warnings. The compilation problems lies in a confustion between subpicture_data_t from spudec.h and subpicture_sys_t. No idea how to fix.

Files:

Legend:

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

    r3f48284 rd2d8554  
    243243{ 
    244244    const clut_t *color = (const clut_t *) icolor; 
    245     int i; 
     245    unsigned int i; 
    246246 
    247247    for (i=0; i<num_xvmc_components; ++i) 
     
    263263                           unsigned num_xvmc_components, char *xvmc_components ) 
    264264{ 
    265     int i; 
     265    unsigned int i; 
    266266    const uint32_t *cluts = p->cluts + first_xx44_entry; 
    267267 
     
    279279static int xx44_paletteIndex( xx44_palette_t *p, int color, uint32_t clut ) 
    280280{ 
    281     int i; 
     281    unsigned int i; 
    282282    uint32_t *cluts = p->cluts; 
    283283    int tmp; 
     
    311311    uint8_t masked_val = val & mask; 
    312312 
    313     if (size < 0) 
    314         return; 
     313/* size_t is unsigned, therefore always positive 
     314   if (size < 0) 
     315        return;*/ 
    315316 
    316317    while(size--) 
     
    339340    int i_len, i_color; 
    340341    uint16_t *p_source = NULL; 
    341     uint16_t i_colprecomp, i_destalpha; 
    342342 
    343343    if (!sub_img) 
     
    350350    alphamask = (ia44) ? 0x0F : 0xF0; 
    351351    p_source = (uint16_t *)sub_img->p_sys->p_data; 
    352     i_colprecomp, i_destalpha; 
    353352 
    354353    dst_y = dst_img + dst_pitch*y_off + x_off; 
     
    835834                                         width, height, 
    836835                                         curCap->subPicType.id ); 
    837         if( !sp == NULL
    838             return VLC_EGENERIC; 
    839  
    840         init_xx44_palette( &p_vout->p_sys->palette, sp->num_palette_entries ); 
    841         p_vout->p_sys->xvmc_palette = (char *) malloc( sp->num_palette_entries 
    842                                                        * sp->entry_bytes ); 
    843         xxmc_xvmc_free_subpicture( p_vout, sp); 
    844         if( !p_vout->p_sys->xvmc_palette ) 
    845             return VLC_EGENERIC
    846         p_vout->p_sys->hwSubpictures = 1; 
     836        if( sp
     837        { 
     838            init_xx44_palette( &p_vout->p_sys->palette, sp->num_palette_entries ); 
     839            p_vout->p_sys->xvmc_palette = (char *) malloc( sp->num_palette_entries 
     840                    * sp->entry_bytes ); 
     841            xxmc_xvmc_free_subpicture( p_vout, sp); 
     842            if( !p_vout->p_sys->xvmc_palette ) 
     843                return VLC_EGENERIC; 
     844            p_vout->p_sys->hwSubpictures = 1
     845        } 
    847846    } 
    848847    return VLC_SUCCESS; 
     
    10371036        unsigned int width, unsigned int height ) 
    10381037{ 
    1039     int i, k; 
     1038    unsigned int i, k; 
    10401039    vlc_bool_t found = VLC_FALSE; 
    10411040    xvmc_capabilities_t *curCap = NULL; 
     
    14351434            XvMCPutSlice2( p_vout->p_sys->p_display, 
    14361435                           &p_vout->p_sys->context, 
    1437                             picture->p_sys->xxmc_data.slice_data, 
     1436                            (char *)picture->p_sys->xxmc_data.slice_data, 
    14381437                            picture->p_sys->xxmc_data.slice_data_size, 
    14391438                            picture->p_sys->xxmc_data.slice_code );