Commit 2ea3cbd3 authored by Eric Petit's avatar Eric Petit

load correctly font-eutopiabold36.rle on BeOS, thanks to sam & Meuuh

 previous commits (closes #100)
parent 6ef4e239
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* spudec.c : SPU decoder thread * spudec.c : SPU decoder thread
***************************************************************************** *****************************************************************************
* Copyright (C) 2000-2001 VideoLAN * Copyright (C) 2000-2001 VideoLAN
* $Id: spudec.c,v 1.11 2003/01/19 03:16:24 sam Exp $ * $Id: spudec.c,v 1.12 2003/01/20 02:45:25 titer Exp $
* *
* Authors: Samuel Hocevar <sam@zoy.org> * Authors: Samuel Hocevar <sam@zoy.org>
* *
...@@ -53,11 +53,11 @@ static void EndThread ( spudec_thread_t * ); ...@@ -53,11 +53,11 @@ static void EndThread ( spudec_thread_t * );
vlc_module_begin(); vlc_module_begin();
add_category_hint( N_("subtitles"), NULL ); add_category_hint( N_("subtitles"), NULL );
#ifndef SYS_DARWIN #if defined(SYS_DARWIN) || defined(SYS_BEOS)
add_file( "spudec-font", "./share/" DEFAULT_FONT, NULL, add_file( "spudec-font", NULL, NULL,
FONT_TEXT, FONT_LONGTEXT ); FONT_TEXT, FONT_LONGTEXT );
#else #else
add_file( "spudec-font", NULL, NULL, add_file( "spudec-font", "./share/" DEFAULT_FONT, NULL,
FONT_TEXT, FONT_LONGTEXT ); FONT_TEXT, FONT_LONGTEXT );
#endif #endif
set_description( _("subtitles decoder module") ); set_description( _("subtitles decoder module") );
...@@ -125,7 +125,7 @@ static int RunDecoder( decoder_fifo_t * p_fifo ) ...@@ -125,7 +125,7 @@ static int RunDecoder( decoder_fifo_t * p_fifo )
{ {
/* Here we are dealing with text subtitles */ /* Here we are dealing with text subtitles */
#ifdef SYS_DARWIN #if defined(SYS_DARWIN) || defined(SYS_BEOS)
if ( (psz_font = config_GetPsz( p_fifo, "spudec-font" )) == NULL ) if ( (psz_font = config_GetPsz( p_fifo, "spudec-font" )) == NULL )
{ {
char * psz_vlcpath = p_fifo->p_libvlc->psz_vlcpath; char * psz_vlcpath = p_fifo->p_libvlc->psz_vlcpath;
......
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