Commit 08e3cf3a authored by Jai Menon's avatar Jai Menon Committed by Jean-Baptiste Kempf

AVFormat : Don't drop metadata keys.

The current code seems to require _all_ metadata fields to be populated
which seems a bit unreasonable.
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
(cherry picked from commit 7d9488cf0055fb8baf3b1d619d30824e7f8c4a10)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent dc6720c8
...@@ -742,13 +742,6 @@ static int Control( demux_t *p_demux, int i_query, va_list args ) ...@@ -742,13 +742,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* ); 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] ) if( p_sys->ic->title[0] )
vlc_meta_SetTitle( p_meta, p_sys->ic->title ); vlc_meta_SetTitle( p_meta, p_sys->ic->title );
if( p_sys->ic->author[0] ) if( p_sys->ic->author[0] )
......
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