[MPlayer-dev-eng] [PATCH]demux_lavf: use new metadata API

Aurelien Jacobs aurel at gnuage.org
Thu Aug 6 23:47:03 CEST 2009


On Mon, Aug 03, 2009 at 02:59:02PM +0200, Anton Khirnov wrote:
> $subj
> 
> [...]
> 
> @@ -512,7 +510,8 @@ static demuxer_t* demux_open_lavf(demuxer_t *demuxer){
>          p = start;
>          do {
>              AVProgram *program = avfc->programs[p];
> -            mp_msg(MSGT_HEADER,MSGL_INFO,"LAVF: Program %d %s\n", program->id, (program->name ? program->name : ""));
> +            t = av_metadata_get(program->metadata, "title", NULL, 0);
> +            mp_msg(MSGT_HEADER,MSGL_INFO,"LAVF: Program %d %s\n", program->id, (t ? t->value : ""));

Useless parentheses.
Except that, patch looks OK.

Aurel



More information about the MPlayer-dev-eng mailing list