From: Laurent Aimar Date: Wed, 4 Feb 2009 20:31:11 +0000 (+0100) Subject: Added mod title support. X-Git-Tag: 1.0.0-pre1~863 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=cf36a814e12cfa804462d5f2ef15bd63d12fd96b;p=vlc Added mod title support. --- diff --git a/modules/demux/mod.c b/modules/demux/mod.c index c0ff6dcf8c..38072d070c 100644 --- a/modules/demux/mod.c +++ b/modules/demux/mod.c @@ -32,6 +32,7 @@ #include #include #include +#include #include @@ -349,6 +350,21 @@ static int Control( demux_t *p_demux, int i_query, va_list args ) } return VLC_EGENERIC; + case DEMUX_HAS_UNSUPPORTED_META: + { + bool *pb_bool = (bool*)va_arg( args, bool* ); + *pb_bool = false; /* FIXME I am not sure of this one */ + return VLC_SUCCESS; + } + case DEMUX_GET_META: + { + vlc_meta_t *p_meta = (vlc_meta_t *)va_arg( args, vlc_meta_t* ); + const char *psz_name = ModPlug_GetName( p_sys->f ); + if( psz_name && *psz_name ) + vlc_meta_SetTitle( p_meta, psz_name ); + return VLC_SUCCESS; + } + case DEMUX_GET_FPS: /* meaningless */ default: return VLC_EGENERIC;