Mercurial > mplayer.hg
diff mencoder.c @ 29670:2e3751815a21
Add support for displaying subtitles on the command-line when playing
audio-only files.
author | reimar |
---|---|
date | Wed, 23 Sep 2009 21:48:48 +0000 |
parents | ecc719c6d7a9 |
children | 94f1bca4f4b6 |
line wrap: on
line diff
--- a/mencoder.c Wed Sep 23 21:27:36 2009 +0000 +++ b/mencoder.c Wed Sep 23 21:48:48 2009 +0000 @@ -218,6 +218,12 @@ char *current_module; #include "mpcommon.h" +// Needed by mpcommon.c +void set_osd_subtitle(subtitle *subs) { + vo_sub = subs; + vo_osd_changed(OSDTYPE_SUBTITLE); +} + //char *out_audio_codec=NULL; // override audio codec //char *out_video_codec=NULL; // override video codec