mirror of
https://github.com/mpv-player/mpv
synced 2025-01-04 14:12:10 +00:00
adaptors are not ports
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10835 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
a1e20cc2b7
commit
2b913661bc
@ -623,7 +623,7 @@ static uint32_t preinit(const char *arg)
|
||||
}
|
||||
|
||||
/* check adaptors */
|
||||
if(xv_port >= adaptors || xv_port < 0)
|
||||
if(xv_port >= ai[0].num_ports || xv_port < 0) // FIXME: ai[0] should not be hardcoded
|
||||
{
|
||||
mp_msg(MSGT_VO, MSGL_WARN,"Xv: Invalid port parameter, overriding with port 0\n");
|
||||
xv_port = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user