From cf36a814e12cfa804462d5f2ef15bd63d12fd96b Mon Sep 17 00:00:00 2001 From: Laurent Aimar Date: Wed, 4 Feb 2009 21:31:11 +0100 Subject: [PATCH] Added mod title support. --- modules/demux/mod.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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; -- 2.39.2