[vlc-commits] AVFormat demux: Ask for artist metadata tag instead of author.

Konstantin Pavlov git at videolan.org
Wed Apr 20 07:36:20 CEST 2011


vlc | branch: master | Konstantin Pavlov <thresh at videolan.org> | Wed Apr 20 09:26:26 2011 +0400| [db4b639b8ff754d771dd1f5057873820fb792cd8] | committer: Konstantin Pavlov

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

Suggested-by: elenril on #libav-devel

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=db4b639b8ff754d771dd1f5057873820fb792cd8
---

 modules/demux/avformat/demux.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/modules/demux/avformat/demux.c b/modules/demux/avformat/demux.c
index 2a17882..52a17af 100644
--- a/modules/demux/avformat/demux.c
+++ b/modules/demux/avformat/demux.c
@@ -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* );
 
             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 *comment = av_metadata_get( p_sys->ic->metadata, "comment", NULL, 0 );
             AVMetadataTag *genre = av_metadata_get( p_sys->ic->metadata, "genre", NULL, 0 );
 
             if( title && title->value )
                 vlc_meta_SetTitle( p_meta, title->value );
-            if( author && author->value )
-                vlc_meta_SetArtist( p_meta, author->value );
+            if( artist && artist->value )
+                vlc_meta_SetArtist( p_meta, artist->value );
             if( copyright && copyright->value )
                 vlc_meta_SetCopyright( p_meta, copyright->value );
             if( comment && comment->value )



More information about the vlc-commits mailing list