Mercurial > mplayer.hg
comparison libmpdemux/demux_ty_osd.c @ 25962:afa125da85cf
typo fix: inited --> initialized
author | diego |
---|---|
date | Thu, 14 Feb 2008 14:23:55 +0000 |
parents | 3554b31074de |
children | e5f5e8891f86 |
comparison
equal
deleted
inserted
replaced
25961:354ad909efcf | 25962:afa125da85cf |
---|---|
59 | 59 |
60 static subtitle ty_OSD1; | 60 static subtitle ty_OSD1; |
61 static subtitle ty_OSD2; | 61 static subtitle ty_OSD2; |
62 static subtitle *ty_pOSD1; | 62 static subtitle *ty_pOSD1; |
63 static subtitle *ty_pOSD2; | 63 static subtitle *ty_pOSD2; |
64 static int tyOSDInited = 0; | 64 static int tyOSDInitialized = 0; |
65 static int tyOSDUpdate = 0; | 65 static int tyOSDUpdate = 0; |
66 | 66 |
67 static void ty_DrawOSD(void) | 67 static void ty_DrawOSD(void) |
68 { | 68 { |
69 // printf( "Calling ty_DrawOSD()\n" ); | 69 // printf( "Calling ty_DrawOSD()\n" ); |
868 | 868 |
869 sub_justify = 1; | 869 sub_justify = 1; |
870 | 870 |
871 if ( subcc_enabled ) | 871 if ( subcc_enabled ) |
872 { | 872 { |
873 if ( tyOSDInited == 0 ) | 873 if ( tyOSDInitialized == 0 ) |
874 { | 874 { |
875 for ( index = 0; index < SUB_MAX_TEXT ; index++ ) | 875 for ( index = 0; index < SUB_MAX_TEXT ; index++ ) |
876 { | 876 { |
877 ty_OSD1.text[ index ] = malloc( TY_CC_MAX_X ); | 877 ty_OSD1.text[ index ] = malloc( TY_CC_MAX_X ); |
878 ty_OSD2.text[ index ] = malloc( TY_CC_MAX_X ); | 878 ty_OSD2.text[ index ] = malloc( TY_CC_MAX_X ); |
881 ty_OSD1.lines = SUB_MAX_TEXT; | 881 ty_OSD1.lines = SUB_MAX_TEXT; |
882 ty_OSD2.lines = SUB_MAX_TEXT; | 882 ty_OSD2.lines = SUB_MAX_TEXT; |
883 ty_pOSD1 = &ty_OSD1; | 883 ty_pOSD1 = &ty_OSD1; |
884 ty_pOSD2 = &ty_OSD2; | 884 ty_pOSD2 = &ty_OSD2; |
885 tyOSDUpdate = 0; | 885 tyOSDUpdate = 0; |
886 tyOSDInited = 1; | 886 tyOSDInitialized = 1; |
887 } | 887 } |
888 | 888 |
889 if ( buf[ 0 ] == 0x01 ) | 889 if ( buf[ 0 ] == 0x01 ) |
890 { | 890 { |
891 ty_CCdecode( buf[ 1 ], buf[ 2 ] ); | 891 ty_CCdecode( buf[ 1 ], buf[ 2 ] ); |