]> granicus.if.org Git - libass/commitdiff
Rename: ass_process_font -> ass_add_font.
authoreugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2>
Sun, 3 Dec 2006 17:35:40 +0000 (17:35 +0000)
committereugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2>
Sun, 3 Dec 2006 17:35:40 +0000 (17:35 +0000)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21471 b3059339-0415-0410-9bf9-f77b7e298cf2

libass/ass.c
libass/ass.h

index 406cd56c420b15ae74ec25d7b317eeff11c21f61..c1568f07fd9316328a24c760c81976717eec66ba 100644 (file)
@@ -570,7 +570,7 @@ static int decode_font(ass_track_t* track)
        assert(dsize <= size / 4 * 3 + 2);
        
        if (track->library->extract_fonts)
-               ass_process_font(track->library, track->parser_priv->fontname, (char*)buf, dsize);
+               ass_add_font(track->library, track->parser_priv->fontname, (char*)buf, dsize);
 
 error_decode_font:
        if (buf) free(buf);
@@ -1083,12 +1083,12 @@ static char* validate_fname(char* name)
 }
 
 /**
- * \brief Process embedded matroska font. Saves it to ~/.mplayer/fonts.
+ * \brief Add a memory font.
  * \param name attachment name
  * \param data binary font data
  * \param data_size data size
 */ 
-void ass_process_font(ass_library_t* library, const char* name, char* data, int data_size)
+void ass_add_font(ass_library_t* library, const char* name, char* data, int data_size)
 {
        char buf[1000];
        FILE* fp = 0;
index 95a94ee727f036ad4411259c72472a4ffd47f705..639b8cb40ce20c00304692b5289a703491a810d6 100644 (file)
@@ -177,12 +177,12 @@ ass_track_t* ass_read_memory(ass_library_t* library, char* buf, size_t bufsize,
 int ass_read_styles(ass_track_t* track, char* fname, char* codepage);
 
 /**
- * \brief Process embedded matroska font. Saves it to ~/.mplayer/fonts.
+ * \brief Add a memory font.
  * \param name attachment name
  * \param data binary font data
  * \param data_size data size
 */
-void ass_process_font(ass_library_t* library, const char* name, char* data, int data_size);
+void ass_add_font(ass_library_t* library, const char* name, char* data, int data_size);
 
 /**
  * \brief Calculates timeshift from now to the start of some other subtitle event, depending on movement parameter