summaryrefslogtreecommitdiffstats
path: root/Gui/interface.c
diff options
context:
space:
mode:
authoruau <uau@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-11-21 20:48:17 +0000
committeruau <uau@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-11-21 20:48:17 +0000
commit2b50b7ddab6524345ace4e75a0b476bedf3a9c8a (patch)
treeb628dffa4b7e470d2400efe716ff736abca2b846 /Gui/interface.c
parent033fc8c6dd130df730215da4f2f78033153f3033 (diff)
downloadmpv-2b50b7ddab6524345ace4e75a0b476bedf3a9c8a.tar.bz2
mpv-2b50b7ddab6524345ace4e75a0b476bedf3a9c8a.tar.xz
Make compilation depending on USE_SUB unconditional.
USE_SUB was hardcoded to true in configure, manually turning it off would break compilation, and there's no apparent reason why having all subtitle code under #ifdefs (even working ones) would be worth the clutter. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21156 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'Gui/interface.c')
-rw-r--r--Gui/interface.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/Gui/interface.c b/Gui/interface.c
index a05458f613..d642c33e20 100644
--- a/Gui/interface.c
+++ b/Gui/interface.c
@@ -380,9 +380,7 @@ void guiInit( void )
if ( filename ) mplSetFileName( NULL,filename,STREAMTYPE_FILE );
if ( plCurrent && !filename ) mplSetFileName( plCurrent->path,plCurrent->name,STREAMTYPE_FILE );
if ( subdata ) guiSetFilename( guiIntfStruct.Subtitlename, subdata->filename );
-#if defined( USE_OSD ) || defined( USE_SUB )
guiLoadFont();
-#endif
}
void guiDone( void )
@@ -427,7 +425,6 @@ extern int stream_dump_type;
extern int vcd_track;
extern m_obj_settings_t*vo_plugin_args;
-#if defined( USE_OSD ) || defined( USE_SUB )
void guiLoadFont( void )
{
#ifdef HAVE_FREETYPE
@@ -469,9 +466,7 @@ void guiLoadFont( void )
}
#endif
}
-#endif
-#ifdef USE_SUB
extern mp_osd_obj_t* vo_osd_list;
extern char **sub_name;
@@ -518,7 +513,6 @@ void guiLoadSubtitle( char * name )
update_set_of_subtitles();
}
-#endif
static void add_vop( char * str )
{
@@ -905,16 +899,12 @@ int guiGetEvent( int type,char * arg )
}
#endif
// -- subtitle
-#ifdef USE_SUB
//subdata->filename=gstrdup( guiIntfStruct.Subtitlename );
stream_dump_type=0;
if ( gtkSubDumpMPSub ) stream_dump_type=4;
if ( gtkSubDumpSrt ) stream_dump_type=6;
gtkSubDumpMPSub=gtkSubDumpSrt=0;
-#endif
-#if defined( USE_OSD ) || defined( USE_SUB )
guiLoadFont();
-#endif
// --- misc
if ( gtkCacheOn ) stream_cache_size=gtkCacheSize;