diff options
author | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-05-24 00:46:48 +0000 |
---|---|---|
committer | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-05-24 00:46:48 +0000 |
commit | 41b71751e463ff94158ab2c70fb6815b2f6dc89d (patch) | |
tree | bca1915b6542bd987da05e22bc5c4043875a5775 /libvo/vo_xv.c | |
parent | 79794b41c3250c54f1f180599a9b5fdf960bf1a4 (diff) | |
download | mpv-41b71751e463ff94158ab2c70fb6815b2f6dc89d.tar.bz2 mpv-41b71751e463ff94158ab2c70fb6815b2f6dc89d.tar.xz |
different message for busy Xv ports and missing Xv ports
message extended, based on Diego's patch
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6175 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/vo_xv.c')
-rw-r--r-- | libvo/vo_xv.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/libvo/vo_xv.c b/libvo/vo_xv.c index 5cd9b9def8..c8bf70834a 100644 --- a/libvo/vo_xv.c +++ b/libvo/vo_xv.c @@ -813,6 +813,7 @@ static void uninit(void) static uint32_t preinit(const char *arg) { XvPortID xv_p; + int busy_ports=0; if(arg) { @@ -843,12 +844,20 @@ static uint32_t preinit(const char *arg) xv_port = xv_p; break; } else { - mp_msg(MSGT_VO,MSGL_ERR,"Xv: could not grab port %i\n", (int)xv_p); + mp_msg(MSGT_VO,MSGL_WARN,"Xv: could not grab port %i\n", (int)xv_p); + ++busy_ports; } } } if(!xv_port){ - mp_msg(MSGT_VO,MSGL_ERR,"Couldn't find free Xvideo port - maybe other applications keep open it\n"); + if(busy_ports) + mp_msg(MSGT_VO,MSGL_ERR,"Couldn't find free Xvideo port - maybe other applications keep open it.\n" + "Close all video applications, and try again. If that does not help,\n" + "see 'mplayer -vo help' for other (non-xv) video out drivers.\n"); + else + mp_msg(MSGT_VO,MSGL_ERR,"It seems there is no Xvideo support for your video card available.\n" + "Run 'xvinfo' to verify its Xv support, and read Xv section of DOCS/video.html !\n" + "See 'mplayer -vo help' for other (non-xv) video out drivers. Try -vo x11\n"); return -1; } |