# HG changeset patch # User arpi # Date 1022201208 0 # Node ID 9676d773533235c3efe1b2d39606122c33d01028 # Parent 020bfd8ac9ef48586650678653faa8349b6af450 different message for busy Xv ports and missing Xv ports message extended, based on Diego's patch diff -r 020bfd8ac9ef -r 9676d7735332 libvo/vo_xv.c --- a/libvo/vo_xv.c Thu May 23 21:58:29 2002 +0000 +++ b/libvo/vo_xv.c Fri May 24 00:46:48 2002 +0000 @@ -813,6 +813,7 @@ static uint32_t preinit(const char *arg) { XvPortID xv_p; + int busy_ports=0; if(arg) { @@ -843,12 +844,20 @@ 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; }