Index: libmpcodecs/vd.c =================================================================== RCS file: /cvsroot/mplayer/main/libmpcodecs/vd.c,v retrieving revision 1.77 diff -u -r1.77 vd.c --- libmpcodecs/vd.c 15 Jul 2004 20:36:04 -0000 1.77 +++ libmpcodecs/vd.c 10 Aug 2004 19:30:30 -0000 @@ -227,6 +227,24 @@ sh->vf_inited=-1; return 0; // failed } +#ifdef USE_OSD + if (!(vo_flags & VFCAP_OSD) && + vf->control(vf, VFCTRL_DRAW_OSD, NULL) != CONTROL_TRUE) { + vf_instance_t* vo, *vp = NULL, *ve; + char *args[3]; + mp_msg(MSGT_CPLAYER,MSGL_INFO, MSGTR_InsertingExpand); + // Find the last filter (vf_vo) + for(vo = vf; vo->next; vo = vo->next) + vp = vo; + args[0] = "osd"; + args[1] = "1"; + args[2] = NULL; + ve = vf_open_filter(vo, "expand", args); + if (vp) vp->next = ve; + else vf = ve; + goto csp_again; + } +#endif out_fmt=sh->codec->outfmt[j]; mp_msg(MSGT_CPLAYER,MSGL_INFO,"VDec: using %s as output csp (no %d)\n",vo_format_name(out_fmt),j); sh->outfmtidx=j; Index: help/help_mp-en.h =================================================================== RCS file: /cvsroot/mplayer/main/help/help_mp-en.h,v retrieving revision 1.123 diff -u -r1.123 help_mp-en.h --- help/help_mp-en.h 30 Jul 2004 15:58:36 -0000 1.123 +++ help/help_mp-en.h 10 Aug 2004 19:30:33 -0000 @@ -86,6 +86,7 @@ #define MSGTR_TryForceVideoFmtStr "Trying to force video codec driver family %s...\n" #define MSGTR_CantFindVideoCodec "Cannot find codec matching selected -vo and video format 0x%X.\n" #define MSGTR_VOincompCodec "The selected video_out device is incompatible with this codec.\n" +#define MSGTR_InsertingExpand "VO does not have OSD support, inserting vf expand\n" #define MSGTR_CannotInitVO "FATAL: Cannot initialize video driver.\n" #define MSGTR_CannotInitAO "Could not open/initialize audio device -> no sound.\n" #define MSGTR_StartPlaying "Starting playback...\n"