diff -NpuBr -Xexclude.txt main/libmpcodecs/vf_vo.c sherpya/libmpcodecs/vf_vo.c --- main/libmpcodecs/vf_vo.c 2011-05-18 03:45:39.656250000 +0200 +++ sherpya/libmpcodecs/vf_vo.c 2011-12-07 02:29:37.437500000 +0100 @@ -70,7 +70,21 @@ static int config(struct vf_instance *vf // save vo's stride capability for the wanted colorspace: vf->default_caps=query_format(vf,outfmt); vf->draw_slice = (vf->default_caps & VOCAP_NOSLICES) ? NULL : draw_slice; - +#if defined(_WIN32) && !defined(CONFIG_GUI) + extern char *filename; + if (filename) { + char message[MAX_PATH + 1]; + char *s = strrchr(filename, '\\'); + if (!s) s = strrchr(filename, '/'); + if (s) s++; else s = filename; + message[0] = 0; + snprintf(message, MAX_PATH, "MPlayer: playing %s", filename_recode(s)); + message[MAX_PATH] = 0; + if(config_video_out(video_out,width,height,d_width,d_height,flags,message,outfmt)) + return 0; + } + else +#endif if(config_video_out(video_out,width,height,d_width,d_height,flags,"MPlayer",outfmt)) return 0; diff -NpuBr -Xexclude.txt main/mencoder.c sherpya/mencoder.c --- main/mencoder.c 2011-12-07 02:25:29.437500000 +0100 +++ sherpya/mencoder.c 2011-12-07 02:29:37.453125000 +0100 @@ -113,6 +113,10 @@ float stream_cache_min_percent=20.0; float stream_cache_seek_min_percent=50.0; #endif +#if defined(_WIN32) && !defined(CONFIG_GUI) +char *filename = NULL; /* dummy for vf_vo */ +#endif + int audio_id=-1; int video_id=-1; int dvdsub_id=-1; diff -NpuBr -Xexclude.txt main/mplayer.c sherpya/mplayer.c --- main/mplayer.c 2011-12-07 02:25:23.937500000 +0100 +++ sherpya/mplayer.c 2011-12-07 02:29:37.453125000 +0100 @@ -3633,6 +3633,19 @@ goto_enable_cache: if (mpctx->stream->type == STREAMTYPE_DVDNAV) mp_input_set_section("dvdnav"); +#if defined(_WIN32) && !defined(CONFIG_GUI) + extern HWND vo_w32_window; /* NULL for directx, the title set in config() */ + if (filename && vo_w32_window) { + char message[MAX_PATH + 1]; + char *s = strrchr(filename, '\\'); + if (!s) s = strrchr(filename, '/'); + if (s) s++; else s = filename; + message[0] = 0; + snprintf(message, MAX_PATH, "MPlayer: playing %s", filename_recode(s)); + message[MAX_PATH] = 0; + SetWindowText(vo_w32_window, message); + } +#endif //==================== START PLAYING ======================= if (mpctx->loop_times > 1)