summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
authorptt <ptt@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-11-12 09:21:53 +0000
committerptt <ptt@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-11-12 09:21:53 +0000
commitab4bdb64e1010be0b408012a79629d05a663b7a1 (patch)
tree24d6c4dcafee8b323b7a373cc705bb59c05c82d5 /mplayer.c
parent153cac185c2d38aef1c322ea3bfa2b97befbb8d9 (diff)
downloadmpv-ab4bdb64e1010be0b408012a79629d05a663b7a1.tar.bz2
mpv-ab4bdb64e1010be0b408012a79629d05a663b7a1.tar.xz
Added -name, -title and -use-filename-title options and implementation in X11 vos
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29904 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/mplayer.c b/mplayer.c
index 4ef2ac2df7..ee58b03660 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -349,6 +349,7 @@ edl_record_ptr next_edl_record = NULL; ///< only for traversing edl_records
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 @@ while (player_idle_mode && !filename) {
}
//---------------------------------------------------------------------------
- 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);