Changeset 6d2df9126dddf225a005d20fef833f524902856f

Show
Ignore:
Timestamp:
14/05/06 23:10:07 (3 years ago)
Author:
Felix Paul Kühne <fkuehne@videolan.org>
git-committer:
Felix Paul Kühne <fkuehne@videolan.org> 1147641007 +0000
git-parent:

[42b2536ebb571c2c72ef89d671e2d4ffa51f4419]

git-author:
Felix Paul Kühne <fkuehne@videolan.org> 1147641007 +0000
Message:

* vlc-meta fixes

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/demux/mpc.c

    r386b36f r6d2df91  
    238238 
    239239    sprintf( psz_info, "Musepack v%d", p_sys->info.stream_version ); 
    240     vlc_meta_Add( p_sys->p_meta, VLC_META_CODEC_NAME, psz_info ); 
     240    //vlc_meta_SetCodecName( p_sys->p_meta, psz_info ); 
     241    //   ^^ doesn't exist (yet?) to set VLC_META_CODEC_NAME, so... 
     242    fprintf( stderr, "***** WARNING: Unhandled child meta\n");  
    241243 
    242244    return VLC_SUCCESS; 
     
    299301    double   f, *pf; 
    300302    int64_t i64, *pi64; 
    301     vlc_meta_t **pp_meta; 
     303    vlc_meta_t *p_meta; 
    302304 
    303305    switch( i_query ) 
    304306    { 
    305307        case DEMUX_GET_META: 
    306             pp_meta = (vlc_meta_t **)va_arg( args, vlc_meta_t** ); 
     308            p_meta = (vlc_meta_t *)va_arg( args, vlc_meta_t* ); 
    307309            if( p_sys->p_meta ) 
    308                 *pp_meta = vlc_meta_Duplicate( p_sys->p_meta ); 
     310                vlc_meta_Merge( p_meta, p_sys->p_meta );  
    309311            else 
    310                 *pp_meta = NULL; 
     312                p_meta = NULL; 
    311313            return VLC_SUCCESS; 
    312314 
  • modules/demux/real.c

    r0bd6bfa r6d2df91  
    762762                msg_Dbg( p_demux, "    - title=`%s'", psz ); 
    763763                EnsureUTF8( psz ); 
    764                 vlc_meta_Add( p_sys->p_meta, VLC_META_TITLE, psz ); 
     764                vlc_meta_SetTitle( p_sys->p_meta, psz ); 
    765765                free( psz ); 
    766766                i_skip -= i_len; 
     
    777777                msg_Dbg( p_demux, "    - author=`%s'", psz ); 
    778778                EnsureUTF8( psz ); 
    779                 vlc_meta_Add( p_sys->p_meta, VLC_META_ARTIST, psz ); 
     779                vlc_meta_SetArtist( p_sys->p_meta, psz ); 
    780780                free( psz ); 
    781781                i_skip -= i_len; 
     
    792792                msg_Dbg( p_demux, "    - copyright=`%s'", psz ); 
    793793                EnsureUTF8( psz ); 
    794                 vlc_meta_Add( p_sys->p_meta, VLC_META_COPYRIGHT, psz ); 
     794                vlc_meta_SetCopyright( p_sys->p_meta, psz ); 
    795795                free( psz ); 
    796796                i_skip -= i_len; 
     
    807807                msg_Dbg( p_demux, "    - comment=`%s'", psz ); 
    808808                EnsureUTF8( psz ); 
    809                 vlc_meta_Add( p_sys->p_meta, VLC_META_DESCRIPTION, psz ); 
     809                vlc_meta_SetDescription( p_sys->p_meta, psz ); 
    810810                free( psz ); 
    811811                i_skip -= i_len;