[MPlayer-cvslog] r21471 - in trunk: libass/ass.c libass/ass.h libmpdemux/demux_mkv.c

eugeni subversion at mplayerhq.hu
Sun Dec 3 18:35:40 CET 2006


Author: eugeni
Date: Sun Dec  3 18:35:40 2006
New Revision: 21471

Modified:
   trunk/libass/ass.c
   trunk/libass/ass.h
   trunk/libmpdemux/demux_mkv.c

Log:
Rename: ass_process_font -> ass_add_font.


Modified: trunk/libass/ass.c
==============================================================================
--- trunk/libass/ass.c	(original)
+++ trunk/libass/ass.c	Sun Dec  3 18:35:40 2006
@@ -570,7 +570,7 @@
 	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 @@
 }
 
 /**
- * \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;

Modified: trunk/libass/ass.h
==============================================================================
--- trunk/libass/ass.h	(original)
+++ trunk/libass/ass.h	Sun Dec  3 18:35:40 2006
@@ -177,12 +177,12 @@
 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

Modified: trunk/libmpdemux/demux_mkv.c
==============================================================================
--- trunk/libmpdemux/demux_mkv.c	(original)
+++ trunk/libmpdemux/demux_mkv.c	Sun Dec  3 18:35:40 2006
@@ -1619,7 +1619,7 @@
               if (extract_embedded_fonts && name && data && data_size &&
                   mime && (strcmp(mime, "application/x-truetype-font") == 0 ||
                   strcmp(mime, "application/x-font") == 0))
-                ass_process_font(ass_library, name, data, data_size);
+                ass_add_font(ass_library, name, data, data_size);
 #endif
               break;
             }



More information about the MPlayer-cvslog mailing list