Commit 42b2536e authored by zorglub's avatar zorglub

Fix ffmpeg linking

parent a7e16ca0
...@@ -401,8 +401,7 @@ static int Control( demux_t *p_demux, int i_query, va_list args ) ...@@ -401,8 +401,7 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
case DEMUX_GET_META: case DEMUX_GET_META:
{ {
vlc_meta_t **pp_meta = (vlc_meta_t**)va_arg( args, vlc_meta_t** ); vlc_meta_t *p_meta = (vlc_meta_t*)va_arg( args, vlc_meta_t* );
vlc_meta_t *meta;
if( !p_sys->ic->title[0] || !p_sys->ic->author[0] || if( !p_sys->ic->title[0] || !p_sys->ic->author[0] ||
!p_sys->ic->copyright[0] || !p_sys->ic->comment[0] || !p_sys->ic->copyright[0] || !p_sys->ic->comment[0] ||
...@@ -411,18 +410,16 @@ static int Control( demux_t *p_demux, int i_query, va_list args ) ...@@ -411,18 +410,16 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
return VLC_EGENERIC; return VLC_EGENERIC;
} }
*pp_meta = meta = vlc_meta_New();
if( p_sys->ic->title[0] ) if( p_sys->ic->title[0] )
vlc_meta_Add( meta, VLC_META_TITLE, 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] )
vlc_meta_Add( meta, VLC_META_AUTHOR, p_sys->ic->author ); vlc_meta_SetAuthor( p_meta, p_sys->ic->author );
if( p_sys->ic->copyright[0] ) if( p_sys->ic->copyright[0] )
vlc_meta_Add( meta, VLC_META_COPYRIGHT, p_sys->ic->copyright ); vlc_meta_SetCopyright( p_meta, p_sys->ic->copyright );
if( p_sys->ic->comment[0] ) if( p_sys->ic->comment[0] )
vlc_meta_Add( meta, VLC_META_DESCRIPTION, p_sys->ic->comment ); vlc_meta_SetDescription( p_meta, p_sys->ic->comment );
if( p_sys->ic->genre[0] ) if( p_sys->ic->genre[0] )
vlc_meta_Add( meta, VLC_META_GENRE, p_sys->ic->genre ); vlc_meta_SetGenre( p_meta, p_sys->ic->genre );
return VLC_SUCCESS; return VLC_SUCCESS;
} }
......
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