Mercurial > mplayer.hg
diff eosd.h @ 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/eosd.h Tue Oct 12 16:53:43 2010 +0000 +++ b/eosd.h Tue Oct 12 22:08:46 2010 +0000 @@ -142,6 +142,11 @@ void eosd_register(struct mp_eosd_source *source); /** + * Test whether a source has already been registered. + */ +int eosd_registered(struct mp_eosd_source *source); + +/** * Allocate a structure for an EOSD image. */ struct mp_eosd_image *eosd_image_alloc(void);