Mercurial > mplayer.hg
diff mplayer.c @ 29862:fbb1f57a313e
Added -name, -title and -use-filename-title options and implementation in X11 vos
author | ptt |
---|---|
date | Thu, 12 Nov 2009 09:21:53 +0000 |
parents | d2853289006d |
children | 32af1e6ef8d3 |
line wrap: on
line diff
--- a/mplayer.c Wed Nov 11 22:26:38 2009 +0000 +++ b/mplayer.c Thu Nov 12 09:21:53 2009 +0000 @@ -349,6 +349,7 @@ short edl_decision = 0; ///< 1 when an EDL operation has been made. FILE* edl_fd = NULL; ///< fd to write to when in -edlout mode. int use_filedir_conf; +int use_filename_title; static unsigned int initialized_flags=0; #include "mpcommon.h" @@ -3089,9 +3090,12 @@ } //--------------------------------------------------------------------------- - if(filename) + if(filename) { mp_msg(MSGT_CPLAYER,MSGL_INFO,MSGTR_Playing, filename_recode(filename)); + if(use_filename_title && vo_wintitle == NULL) + vo_wintitle = strdup ( mp_basename2 (filename)); + } if (edl_filename) { if (edl_records) free_edl(edl_records);