summaryrefslogtreecommitdiffstats
path: root/libass/ass.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-01-21 00:32:28 +0100
committerwm4 <wm4@nowhere>2014-01-24 01:01:13 +0100
commit97f74166cfc6e2884c405846b030215331c37a75 (patch)
treeb9ffe7816220122737771b53c52f8ea205dac477 /libass/ass.c
parent5114ff4f2cef1846fbcc9ffcdfddea32bddb0657 (diff)
downloadlibass-97f74166cfc6e2884c405846b030215331c37a75.tar.bz2
libass-97f74166cfc6e2884c405846b030215331c37a75.tar.xz
Remove some ass_msg() calls
These aren't very useful for debugging due to the high volume of the log output in problem cases. In fact, all they do is making the code slower (the message callback can easily appear in the profiler output, even if the callback doesn't actually print the messages).
Diffstat (limited to 'libass/ass.c')
-rw-r--r--libass/ass.c19
1 files changed, 6 insertions, 13 deletions
diff --git a/libass/ass.c b/libass/ass.c
index c45adaf4..38171344 100644
--- a/libass/ass.c
+++ b/libass/ass.c
@@ -252,38 +252,32 @@ static int numpad2align(int val)
#define ANYVAL(name,func) \
} else if (strcasecmp(tname, #name) == 0) { \
- target->name = func(token); \
- ass_msg(track->library, MSGL_DBG2, "%s = %s", #name, token);
+ target->name = func(token);
#define STRVAL(name) \
} else if (strcasecmp(tname, #name) == 0) { \
if (target->name != NULL) free(target->name); \
- target->name = strdup(token); \
- ass_msg(track->library, MSGL_DBG2, "%s = %s", #name, token);
+ target->name = strdup(token);
#define STARREDSTRVAL(name) \
} else if (strcasecmp(tname, #name) == 0) { \
if (target->name != NULL) free(target->name); \
while (*token == '*') ++token; \
- target->name = strdup(token); \
- ass_msg(track->library, MSGL_DBG2, "%s = %s", #name, token);
+ target->name = strdup(token);
#define COLORVAL(name) \
} else if (strcasecmp(tname, #name) == 0) { \
- target->name = string2color(track->library, token); \
- ass_msg(track->library, MSGL_DBG2, "%s = %s", #name, token);
+ target->name = string2color(track->library, token);
#define INTVAL(name) ANYVAL(name,atoi)
#define FPVAL(name) ANYVAL(name,ass_atof)
#define TIMEVAL(name) \
} else if (strcasecmp(tname, #name) == 0) { \
- target->name = string2timecode(track->library, token); \
- ass_msg(track->library, MSGL_DBG2, "%s = %s", #name, token);
+ target->name = string2timecode(track->library, token);
#define STYLEVAL(name) \
} else if (strcasecmp(tname, #name) == 0) { \
- target->name = lookup_style(track, token); \
- ass_msg(track->library, MSGL_DBG2, "%s = %s", #name, token);
+ target->name = lookup_style(track, token);
static char *next_token(char **str)
{
@@ -354,7 +348,6 @@ static int process_event_tail(ASS_Track *track, ASS_Event *event,
if (last >= event->Text && *last == '\r')
*last = 0;
}
- ass_msg(track->library, MSGL_DBG2, "Text = %s", event->Text);
event->Duration -= event->Start;
free(format);
return 0; // "Text" is always the last