]> git.sesse.net Git - vlc/commitdiff
AVFormat : Don't drop metadata keys.
authorJai Menon <jmenon86@gmail.com>
Sun, 18 Jul 2010 13:13:31 +0000 (18:43 +0530)
committerJean-Baptiste Kempf <jb@videolan.org>
Sun, 18 Jul 2010 15:23:39 +0000 (17:23 +0200)
The current code seems to require _all_ metadata fields to be populated
which seems a bit unreasonable.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/demux/avformat/demux.c

index 91092438e4386852c27488e19a20f1c4a713a4fe..91608f032a1c25cd3d259f61548931af24aa5b1b 100644 (file)
@@ -766,13 +766,6 @@ 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* );
 
-            if( !p_sys->ic->title[0] || !p_sys->ic->author[0] ||
-                !p_sys->ic->copyright[0] || !p_sys->ic->comment[0] ||
-                /*!p_sys->ic->album[0] ||*/ !p_sys->ic->genre[0] )
-            {
-                return VLC_EGENERIC;
-            }
-
             if( p_sys->ic->title[0] )
                 vlc_meta_SetTitle( p_meta, p_sys->ic->title );
             if( p_sys->ic->author[0] )