[vlc-devel] [PATCH] real file index and seek

王波 silencewang at msn.com
Mon May 26 03:49:21 CEST 2008


yes, p_sys->p_meta can be removed, i will check it later.

> Date: Fri, 23 May 2008 15:33:18 -0700> From: jb at videolan.org> To: vlc-devel at videolan.org> Subject: Re: [vlc-devel] [PATCH] real file index and seek> > On Fri, May 23, 2008 at 08:38:26PM +0800, Wang Bo wrote :> > @@ -751,6 +952,7 @@ static int HeaderRead( demux_t *p_demux )> > uint32_t i_size;> > int64_t i_skip;> > int i_version;> > + p_sys->p_meta = vlc_meta_New();> > > > for( ;; )> > {> > @@ -801,6 +1003,8 @@ static int HeaderRead( demux_t *p_demux )> > /* set the duration for export in control */> > p_sys->i_our_duration = (int)GetDWBE(&header[20]);> > > > + p_sys->i_index_offset = GetDWBE(&header[28]);> > +> > i_flags = GetWBE(&header[38]);> > msg_Dbg( p_demux, " - flags=0x%x %s%s%s",> > i_flags,> > @@ -827,6 +1031,8 @@ static int HeaderRead( demux_t *p_demux )> > EnsureUTF8( psz );> > msg_Dbg( p_demux, " - title=`%s'", psz );> > p_sys->psz_title = psz;> > + vlc_meta_Add( p_sys->p_meta, VLC_META_TITLE, psz );> > + free( psz );> > i_skip -= i_len;> > }> > i_skip -= 2;> > @@ -841,6 +1047,8 @@ static int HeaderRead( demux_t *p_demux )> > EnsureUTF8( psz );> > msg_Dbg( p_demux, " - author=`%s'", psz );> > p_sys->psz_artist = psz;> > + vlc_meta_Add( p_sys->p_meta, VLC_META_ARTIST, psz );> > + free( psz );> > i_skip -= i_len;> > }> > i_skip -= 2;> > @@ -855,6 +1063,8 @@ static int HeaderRead( demux_t *p_demux )> > EnsureUTF8( psz );> > msg_Dbg( p_demux, " - copyright=`%s'", psz );> > p_sys->psz_copyright = psz;> > + vlc_meta_Add( p_sys->p_meta, VLC_META_COPYRIGHT, psz );> > + free( psz );> > i_skip -= i_len;> > }> > i_skip -= 2;> > @@ -869,6 +1079,8 @@ static int HeaderRead( demux_t *p_demux )> > EnsureUTF8( psz );> > msg_Dbg( p_demux, " - comment=`%s'", psz );> > p_sys->psz_description = psz;> > + vlc_meta_Add( p_sys->p_meta, VLC_META_DESCRIPTION, psz );> > + free( psz );> > i_skip -= i_len;> > }> > i_skip -= 2;> Why that change ?> It is already done in :> case DEMUX_GET_META:> > > Best Regards,> > -- > Jean-Baptiste Kempf> http://www.jbkempf.com/> _______________________________________________> vlc-devel mailing list> To unsubscribe or modify your subscription options:> http://mailman.videolan.org/listinfo/vlc-devel
_________________________________________________________________
MSN 中文网,最新时尚生活资讯,白领聚集门户。
http://cn.msn.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20080526/a0853f3e/attachment.html>


More information about the vlc-devel mailing list