Commit 3bc0399a authored by Jan Gerber's avatar Jan Gerber
Browse files

make make work again with kate available

parent 223d8c40
......@@ -56,7 +56,7 @@ static void add_kate_stream(ff2theora this){
/*
* sets the filename of the next subtitles file
*/
static void set_subtitles_file(ff2theora this,const char *filename){
void set_subtitles_file(ff2theora this,const char *filename){
size_t n;
for (n=0; n<this->n_kate_streams;++n) {
if (!this->kate_streams[n].filename) break;
......@@ -68,7 +68,7 @@ static void set_subtitles_file(ff2theora this,const char *filename){
/*
* sets the language of the next subtitles file
*/
static void set_subtitles_language(ff2theora this,const char *language){
void set_subtitles_language(ff2theora this,const char *language){
size_t n;
for (n=0; n<this->n_kate_streams;++n) {
if (!this->kate_streams[n].subtitles_language[0]) break;
......@@ -81,7 +81,7 @@ static void set_subtitles_language(ff2theora this,const char *language){
/*
* sets the category of the next subtitles file
*/
static void set_subtitles_category(ff2theora this,const char *category){
void set_subtitles_category(ff2theora this,const char *category){
size_t n;
for (n=0; n<this->n_kate_streams;++n) {
if (!this->kate_streams[n].subtitles_category[0]) break;
......@@ -94,7 +94,7 @@ static void set_subtitles_category(ff2theora this,const char *category){
/**
* sets the encoding of the next subtitles file
*/
static void set_subtitles_encoding(ff2theora this,F2T_ENCODING encoding){
void set_subtitles_encoding(ff2theora this,F2T_ENCODING encoding){
size_t n;
for (n=0; n<this->n_kate_streams;++n) {
if (this->kate_streams[n].subtitles_encoding==ENC_UNSET) break;
......@@ -104,7 +104,7 @@ static void set_subtitles_encoding(ff2theora this,F2T_ENCODING encoding){
}
static void report_unknown_subtitle_encoding(const char *name)
void report_unknown_subtitle_encoding(const char *name)
{
fprintf(stderr, "Unknown character encoding: %s\n",name);
fprintf(stderr, "Valid character encodings are:\n");
......
......@@ -16,12 +16,15 @@
#define SUPPORTED_ENCODINGS "utf-8, utf8, iso-8859-1, latin1"
static void add_kate_stream(ff2theora this);
static void set_subtitles_file(ff2theora this,const char *filename);
static void set_subtitles_language(ff2theora this,const char *language);
extern int load_subtitles(ff2theora_kate_stream *this);
extern void free_subtitles(ff2theora this);
static void report_unknown_subtitle_encoding(const char *name);
extern void set_subtitles_file(ff2theora this,const char *filename);
extern void set_subtitles_language(ff2theora this,const char *language);
extern void set_subtitles_category(ff2theora this,const char *category);
extern void set_subtitles_encoding(ff2theora this,F2T_ENCODING encoding);
extern void report_unknown_subtitle_encoding(const char *name);
static char *fgets2(char *s,size_t sz,FILE *f);
static double hmsms2s(int h,int m,int s,int ms);
static void convert_subtitle_to_utf8(F2T_ENCODING encoding,unsigned char *text);
......
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