changeset 32564:61ac00c3c51c

Support clearing subtitles. Makes PGS subtitles disappear at the appropriate time.
author reimar
date Sat, 27 Nov 2010 10:01:11 +0000
parents adac1f9d2db3
children e55bd36048a8
files sub/av_sub.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/sub/av_sub.c	Sat Nov 27 09:51:31 2010 +0000
+++ b/sub/av_sub.c	Sat Nov 27 10:01:11 2010 +0000
@@ -82,6 +82,8 @@
             *endpts = *pts + sub.end_display_time / 1000.0;
         *pts += sub.start_display_time / 1000.0;
     }
+    if (got_sub && vo_spudec && sub.num_rects == 0)
+        spudec_set_paletted(vo_spudec, NULL, 0, NULL, 0, 0, 0, 0, *pts, *endpts);
     if (got_sub && sub.num_rects > 0) {
         switch (sub.rects[0]->type) {
         case SUBTITLE_BITMAP: