# HG changeset patch # User diego # Date 1284203470 0 # Node ID c3b7fc7eb796a2e1d03e375c743a5acefb76275f # Parent 319657dba8e17d6e6a7615bdf03ab29363665067 Move audio_lang / dvdsub_lang extern variable declarations to mpcommon.h. diff -r 319657dba8e1 -r c3b7fc7eb796 libmpdemux/demux_mpg.c --- a/libmpdemux/demux_mpg.c Sat Sep 11 10:57:31 2010 +0000 +++ b/libmpdemux/demux_mpg.c Sat Sep 11 11:11:10 2010 +0000 @@ -26,6 +26,7 @@ #include "config.h" #include "mp_msg.h" +#include "mpcommon.h" #include "help_mp.h" #include "stream/stream.h" @@ -59,7 +60,6 @@ int a_stream_ids[MAX_A_STREAMS]; } mpg_demuxer_t; -extern char* dvdsub_lang; static int mpeg_pts_error=0; off_t ps_probe = 0; diff -r 319657dba8e1 -r c3b7fc7eb796 libmpdemux/demux_ogg.c --- a/libmpdemux/demux_ogg.c Sat Sep 11 10:57:31 2010 +0000 +++ b/libmpdemux/demux_ogg.c Sat Sep 11 11:11:10 2010 +0000 @@ -164,8 +164,6 @@ #define PACKET_LEN_BITS2 0x02 #define PACKET_IS_SYNCPOINT 0x08 -extern char *dvdsub_lang, *audio_lang; - //-------- subtitle support - should be moved to decoder layer, and queue // - subtitles up in demuxer buffer... diff -r 319657dba8e1 -r c3b7fc7eb796 libmpdemux/demux_ts.c --- a/libmpdemux/demux_ts.c Sat Sep 11 10:57:31 2010 +0000 +++ b/libmpdemux/demux_ts.c Sat Sep 11 11:11:10 2010 +0000 @@ -28,6 +28,7 @@ #include "config.h" #include "mp_msg.h" +#include "mpcommon.h" #include "help_mp.h" #include "stream/stream.h" @@ -60,7 +61,6 @@ int ts_keep_broken=0; off_t ts_probe = 0; int audio_substream_id = -1; -extern char *audio_lang; //for -alang typedef enum { diff -r 319657dba8e1 -r c3b7fc7eb796 mpcommon.h --- a/mpcommon.h Sat Sep 11 10:57:31 2010 +0000 +++ b/mpcommon.h Sat Sep 11 11:11:10 2010 +0000 @@ -35,6 +35,9 @@ extern char **sub_name; extern char *font_name; extern char *sub_font_name; +extern char *audio_lang; +extern char *dvdsub_lang; + extern float font_factor; extern double force_fps; diff -r 319657dba8e1 -r c3b7fc7eb796 subreader.c --- a/subreader.c Sat Sep 11 10:57:31 2010 +0000 +++ b/subreader.c Sat Sep 11 11:11:10 2010 +0000 @@ -57,8 +57,6 @@ int fribidi_flip_commas = 0; ///flip comma when fribidi is used #endif -extern char* dvdsub_lang; - /* Maximal length of line of a subtitle */ #define LINE_LEN 1000 static float mpsub_position=0;