summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/mplayer.c b/mplayer.c
index ce44c7974a..ca0f775a97 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -2960,8 +2960,9 @@ if(vo_config_count && vo_spudec) {
spudec_assemble(vo_spudec,packet,len,timestamp);
}
- /* Don't know how to detect wether the sub has changed or not */
- vo_osd_changed(OSDTYPE_SPU);
+ /* detect wether the sub has changed or not */
+ if(spudec_changed(vo_spudec))
+ vo_osd_changed(OSDTYPE_SPU);
current_module=NULL;
}