Changeset 1e0b16b3bc024adedbabcdef036e6aee0cf040b0

Show
Ignore:
Timestamp:
05/15/06 14:28:44 (2 years ago)
Author:
Clément Stenac <zorglub@videolan.org>
git-committer:
Clément Stenac <zorglub@videolan.org> 1147696124 +0000
git-parent:

[dea44d9658b8b052594133f1abf53eb80903e595]

git-author:
Clément Stenac <zorglub@videolan.org> 1147696124 +0000
Message:

Should fix Xosd compilation

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/visualization/xosd.c

    red0b72e r1e0b16b  
    207207    playlist_t *p_playlist; 
    208208    playlist_item_t *p_item = NULL; 
    209     input_item_t item
     209    input_item_t *p_input
    210210    char psz_duration[MSTRTIME_MAX_SIZE+2]; 
    211211    char *psz_display = NULL; 
     
    245245            else 
    246246            { 
    247                 p_item = p_playlist->status.p_item; 
    248                 item = p_item->input; 
     247                p_item = p_playlist->status.p_item; 
     248                p_input = p_item->p_input; 
    249249                if( !p_item ) 
    250250                { 
     
    255255                vlc_object_release( p_playlist ); 
    256256 
    257                 if( item.i_duration != -1 ) 
     257                if( p_input->i_duration != -1 ) 
    258258                { 
    259259                    char psz_durationstr[MSTRTIME_MAX_SIZE]; 
    260                     secstotimestr( psz_durationstr, item.i_duration/1000000 ); 
     260                    secstotimestr( psz_durationstr, p_input->i_duration/1000000 ); 
    261261                    sprintf( psz_duration, "(%s)", psz_durationstr ); 
    262262                } 
     
    267267 
    268268                psz_display = (char *)malloc( sizeof(char )* 
    269                                           (strlen( item.psz_name ) + 
     269                                          (strlen( p_input->psz_name ) + 
    270270                                          MSTRTIME_MAX_SIZE + 2+6 + 10 +10 )); 
    271271                sprintf( psz_display,"%s %s", 
    272                          item.psz_name, psz_duration); 
     272                         p_input->psz_name, psz_duration); 
    273273            } 
    274274