diff ass_mp.c @ 32397:b3110e526e19

EOSD: add a function to test if a source has already been registered. Use it to avoid adding the ASS source twice.
author cigaes
date Tue, 12 Oct 2010 22:08:46 +0000
parents b4c3659d16b1
children fbee56276c87
line wrap: on
line diff
--- a/ass_mp.c	Tue Oct 12 16:53:43 2010 +0000
+++ b/ass_mp.c	Tue Oct 12 22:08:46 2010 +0000
@@ -374,5 +374,6 @@
 	if (!ass_renderer)
 		return;
 	ass_configure_fonts(ass_renderer);
-	eosd_register(&eosd_ass);
+	if (!eosd_registered(&eosd_ass))
+		eosd_register(&eosd_ass);
 }