From 392c9b86ce5f931d313062b00a6a63166441d1d3 Mon Sep 17 00:00:00 2001 From: Grigori Goronzy Date: Mon, 29 Jun 2009 17:22:52 +0200 Subject: [PATCH] API: make process_force_style available Rename process_force_style to ass_process_force_style and make it available in the DSO. --- libass/ass.c | 6 +++--- libass/ass.h | 2 ++ libass/libass.sym | 1 + 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/libass/ass.c b/libass/ass.c index 4dba5e2..e6aa4a1 100644 --- a/libass/ass.c +++ b/libass/ass.c @@ -346,7 +346,7 @@ static int process_event_tail(ass_track_t *track, ass_event_t *event, * \param track track to apply overrides to * The format for overrides is [StyleName.]Field=Value */ -void process_force_style(ass_track_t *track) +void ass_process_force_style(ass_track_t *track) { char **fs, *eq, *dt, *style, *tname, *token; ass_style_t *target; @@ -813,7 +813,7 @@ void ass_process_codec_private(ass_track_t *track, char *data, int size) ("Format: Layer, Start, End, Style, Actor, MarginL, MarginR, MarginV, Effect, Text"); } - process_force_style(track); + ass_process_force_style(track); } static int check_duplicate_event(ass_track_t *track, int ReadOrder) @@ -1048,7 +1048,7 @@ static ass_track_t *parse_memory(ass_library_t *library, char *buf) return 0; } - process_force_style(track); + ass_process_force_style(track); return track; } diff --git a/libass/ass.h b/libass/ass.h index 6dd28ec..c8b6e48 100644 --- a/libass/ass.h +++ b/libass/ass.h @@ -67,6 +67,8 @@ void ass_set_extract_fonts(ass_library_t *priv, int extract); void ass_set_style_overrides(ass_library_t *priv, char **list); +void ass_process_force_style(ass_track_t *track); + /** * \brief initialize the renderer * \param priv library handle diff --git a/libass/libass.sym b/libass/libass.sym index f363c85..7579b4f 100644 --- a/libass/libass.sym +++ b/libass/libass.sym @@ -29,3 +29,4 @@ ass_read_styles ass_add_font ass_clear_fonts ass_step_sub +ass_process_force_style -- 2.40.0