Commit db4b639b authored by Konstantin Pavlov's avatar Konstantin Pavlov

AVFormat demux: Ask for artist metadata tag instead of author.

Suggested-by: elenril on #libav-devel
parent c7255099
...@@ -765,15 +765,15 @@ static int Control( demux_t *p_demux, int i_query, va_list args ) ...@@ -765,15 +765,15 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
vlc_meta_t *p_meta = (vlc_meta_t*)va_arg( args, vlc_meta_t* ); vlc_meta_t *p_meta = (vlc_meta_t*)va_arg( args, vlc_meta_t* );
AVMetadataTag *title = av_metadata_get( p_sys->ic->metadata, "language", NULL, 0 ); AVMetadataTag *title = av_metadata_get( p_sys->ic->metadata, "language", NULL, 0 );
AVMetadataTag *author = av_metadata_get( p_sys->ic->metadata, "author", NULL, 0 ); AVMetadataTag *artist = av_metadata_get( p_sys->ic->metadata, "artist", NULL, 0 );
AVMetadataTag *copyright = av_metadata_get( p_sys->ic->metadata, "copyright", NULL, 0 ); AVMetadataTag *copyright = av_metadata_get( p_sys->ic->metadata, "copyright", NULL, 0 );
AVMetadataTag *comment = av_metadata_get( p_sys->ic->metadata, "comment", NULL, 0 ); AVMetadataTag *comment = av_metadata_get( p_sys->ic->metadata, "comment", NULL, 0 );
AVMetadataTag *genre = av_metadata_get( p_sys->ic->metadata, "genre", NULL, 0 ); AVMetadataTag *genre = av_metadata_get( p_sys->ic->metadata, "genre", NULL, 0 );
if( title && title->value ) if( title && title->value )
vlc_meta_SetTitle( p_meta, title->value ); vlc_meta_SetTitle( p_meta, title->value );
if( author && author->value ) if( artist && artist->value )
vlc_meta_SetArtist( p_meta, author->value ); vlc_meta_SetArtist( p_meta, artist->value );
if( copyright && copyright->value ) if( copyright && copyright->value )
vlc_meta_SetCopyright( p_meta, copyright->value ); vlc_meta_SetCopyright( p_meta, copyright->value );
if( comment && comment->value ) if( comment && comment->value )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment