summaryrefslogtreecommitdiffstats
path: root/libmpcodecs
diff options
context:
space:
mode:
authorarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-04-11 11:03:16 +0000
committerarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-04-11 11:03:16 +0000
commit4f07b7ebc53ef2bb935bca400e250cc486216b3b (patch)
tree5ac673eaae9345e7c0a8a800690357e531d233a4 /libmpcodecs
parentd629e1b04080becbf79ea02cbfda95007ea65bc1 (diff)
downloadmpv-4f07b7ebc53ef2bb935bca400e250cc486216b3b.tar.bz2
mpv-4f07b7ebc53ef2bb935bca400e250cc486216b3b.tar.xz
print VO info
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5560 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs')
-rw-r--r--libmpcodecs/vf_vo.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/libmpcodecs/vf_vo.c b/libmpcodecs/vf_vo.c
index b0c876c731..c3d2e10aa1 100644
--- a/libmpcodecs/vf_vo.c
+++ b/libmpcodecs/vf_vo.c
@@ -17,6 +17,23 @@
static int config(struct vf_instance_s* vf,
int width, int height, int d_width, int d_height,
unsigned int flags, unsigned int outfmt){
+
+ if(video_out->get_info)
+ { const vo_info_t *info = video_out->get_info();
+ mp_msg(MSGT_CPLAYER,MSGL_INFO,"VO: [%s] %dx%d => %dx%d %s %s%s%s%s\n",info->short_name,
+ width, height,
+ d_width, d_height,
+ vo_format_name(outfmt),
+ (flags&1)?"fs ":"",
+ (flags&2)?"vm ":"",
+ (flags&4)?"zoom ":"",
+ (flags&8)?"flip ":"");
+ mp_msg(MSGT_CPLAYER,MSGL_V,"VO: Description: %s\n",info->name);
+ mp_msg(MSGT_CPLAYER,MSGL_V,"VO: Author: %s\n", info->author);
+ if(info->comment && strlen(info->comment) > 0)
+ mp_msg(MSGT_CPLAYER,MSGL_V,"VO: Comment: %s\n", info->comment);
+ }
+
if(video_out->config(width,height,d_width,d_height,flags,"MPlayer",outfmt,NULL))
return 0;
++vo_config_count;