* spudec.c : SPU decoder thread
*****************************************************************************
* Copyright (C) 2000-2001 VideoLAN
- * $Id: spudec.c,v 1.14 2003/01/30 16:36:04 gbazin Exp $
+ * $Id: spudec.c,v 1.18 2003/05/15 22:27:37 massiot Exp $
*
* Authors: Samuel Hocevar <sam@zoy.org>
*
/*****************************************************************************
* Module descriptor.
*****************************************************************************/
-#define FONT_TEXT N_("font used by the text subtitler")
+#define FONT_TEXT N_("Font used by the text subtitler")
#define FONT_LONGTEXT N_(\
"When the subtitles are coded in text form then, you can choose " \
"which font will be used to display them.")
#define DEFAULT_FONT "font-eutopiabold36.rle"
vlc_module_begin();
- add_category_hint( N_("subtitles"), NULL );
-#if defined(SYS_DARWIN) || defined(SYS_BEOS)
+ add_category_hint( N_("subtitles"), NULL, VLC_TRUE );
+#if defined(SYS_DARWIN) || defined(SYS_BEOS) \
+ || (defined(WIN32) && !defined(UNDER_CE))
add_file( "spudec-font", NULL, NULL,
- FONT_TEXT, FONT_LONGTEXT );
+ FONT_TEXT, FONT_LONGTEXT, VLC_TRUE );
#else
- add_file( "spudec-font", "./share/" DEFAULT_FONT, NULL,
- FONT_TEXT, FONT_LONGTEXT );
+ add_file( "spudec-font", "share/" DEFAULT_FONT, NULL,
+ FONT_TEXT, FONT_LONGTEXT, VLC_TRUE );
#endif
- set_description( _("subtitles decoder module") );
+ set_description( _("subtitles decoder") );
set_capability( "decoder", 50 );
set_callbacks( OpenDecoder, NULL );
vlc_module_end();
+ strlen(DEFAULT_FONT) + 1 );
sprintf(psz_font, "%s/share/" DEFAULT_FONT, psz_vlcpath);
}
+#elif defined(WIN32) && !defined(UNDER_CE)
+ if ( (psz_font = config_GetPsz( p_fifo, "spudec-font" )) == NULL )
+ {
+ char * psz_vlcpath = p_fifo->p_libvlc->psz_vlcpath;
+ psz_font = malloc( strlen(psz_vlcpath) + strlen("\\share\\")
+ + strlen(DEFAULT_FONT) + 1 );
+ sprintf(psz_font, "%s\\share\\" DEFAULT_FONT, psz_vlcpath);
+ }
#else
if( (psz_font = config_GetPsz( p_fifo, "spudec-font" )) == NULL )
{