[vlc-devel] commit: Added mod title support. (Laurent Aimar )
git version control
git at videolan.org
Thu Feb 5 19:23:07 CET 2009
vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Wed Feb 4 21:31:11 2009 +0100| [cf36a814e12cfa804462d5f2ef15bd63d12fd96b] | committer: Laurent Aimar
Added mod title support.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=cf36a814e12cfa804462d5f2ef15bd63d12fd96b
---
modules/demux/mod.c | 16 ++++++++++++++++
1 files changed, 16 insertions(+), 0 deletions(-)
diff --git a/modules/demux/mod.c b/modules/demux/mod.c
index c0ff6dc..38072d0 100644
--- a/modules/demux/mod.c
+++ b/modules/demux/mod.c
@@ -32,6 +32,7 @@
#include <vlc_common.h>
#include <vlc_plugin.h>
#include <vlc_demux.h>
+#include <vlc_meta.h>
#include <libmodplug/modplug.h>
@@ -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;
More information about the vlc-devel
mailing list