diff options
author | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-10-01 18:29:35 +0000 |
---|---|---|
committer | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2010-11-02 04:18:08 +0200 |
commit | 69e3e06a1ab7c58b16294d0c7451b374e5966e21 (patch) | |
tree | 2505424106c7b90448262cc3bdc3f73b699ccf32 /sub_cc.c | |
parent | b44a0edd9fd1d88e7d114c3ba1f34662127981ad (diff) | |
download | mpv-69e3e06a1ab7c58b16294d0c7451b374e5966e21.tar.bz2 mpv-69e3e06a1ab7c58b16294d0c7451b374e5966e21.tar.xz |
Move code to avoid forward declarations in top-level .c files
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32421 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'sub_cc.c')
-rw-r--r-- | sub_cc.c | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -58,8 +58,6 @@ static int initialized=0; static int cc_mode=CC_ROLLON; static int cc_lines=4; ///< number of visible rows in CC roll-up mode, not used in CC roll-on mode -static void display_buffer(subtitle * buf); - static void build_char_table(void) { int i; @@ -120,6 +118,14 @@ void subcc_init(void) initialized=1; } + +static void display_buffer(subtitle *buf) +{ + vo_sub = buf; + vo_osd_changed(OSDTYPE_SUBTITLE); +} + + static void append_char(char c) { if(!bb->lines) {bb->lines++; cursor_pos=0;} @@ -163,12 +169,6 @@ static void swap_buffers(void) bb=foo; } -static void display_buffer(subtitle * buf) -{ - vo_sub=buf; - vo_osd_changed(OSDTYPE_SUBTITLE); -} - static void cc_decode_EIA608(unsigned short int data) { |