Changeset 4842d4ca513956dbc2ade8238a995717e0681815

Show
Ignore:
Timestamp:
12/11/04 16:41:22 (4 years ago)
Author:
Gildas Bazin <gbazin@videolan.org>
git-committer:
Gildas Bazin <gbazin@videolan.org> 1100274082 +0000
git-parent:

[a0ffcd868718ca8a354da272e6ec0934c960a718]

git-author:
Gildas Bazin <gbazin@videolan.org> 1100274082 +0000
Message:

* src/playlist/*: a couple of compilation fixes.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/playlist/item.c

    rab674ac r4842d4c  
    247247        if( i_duration != -1 ) 
    248248        { 
    249             secstotimestr( psz_buffer, i_duration/1000000 ); 
     249            secstotimestr( psz_buffer, (int)(i_duration/1000000) ); 
    250250        } 
    251251        else 
     
    292292        } 
    293293    } 
    294     return ITEM_TYPE_UNKNOWN; 
    295 } 
     294    p_item->i_type = ITEM_TYPE_UNKNOWN; 
     295} 
  • src/playlist/playlist.c

    r382926a r4842d4c  
    222222int playlist_vaControl( playlist_t * p_playlist, int i_query, va_list args ) 
    223223{ 
    224     vlc_mutex_lock( &p_playlist->object_lock ); 
    225  
    226224    playlist_view_t *p_view; 
    227225    vlc_value_t val; 
     226 
     227    vlc_mutex_lock( &p_playlist->object_lock ); 
    228228 
    229229#ifdef PLAYLIST_PROFILE 
  • src/playlist/view.c

    rf9d5e2b r4842d4c  
    9191int playlist_ViewInsert( playlist_t *p_playlist, int i_id, char *psz_name ) 
    9292{ 
    93     playlist_view_t *p_view = playlist_ViewCreate( p_playlist, i_id , psz_name); 
     93    playlist_view_t *p_view = 
     94        playlist_ViewCreate( p_playlist, i_id , psz_name ); 
    9495    if( !p_view ) 
    9596    { 
     
    100101    vlc_mutex_lock( &p_playlist->object_lock ); 
    101102 
    102     INSERT_ELEM( p_playlist->pp_views, 
    103                  p_playlist->i_views, 
    104                  p_playlist->i_views, 
    105                  p_view ); 
     103    INSERT_ELEM( p_playlist->pp_views, p_playlist->i_views, 
     104                 p_playlist->i_views, p_view ); 
    106105 
    107106    vlc_mutex_unlock( &p_playlist->object_lock ); 
     107    return VLC_SUCCESS; 
    108108} 
    109109