summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authorattila <attila@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-09-07 14:45:10 +0000
committerattila <attila@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-09-07 14:45:10 +0000
commit2b913661bc795d89c7f944f1fc259ef74298fcc7 (patch)
tree031671aa85f1206ad8629695159adec37b786375 /libvo
parenta1e20cc2b7c8fb8d23c922a14c24ddcdc7a08155 (diff)
downloadmpv-2b913661bc795d89c7f944f1fc259ef74298fcc7.tar.bz2
mpv-2b913661bc795d89c7f944f1fc259ef74298fcc7.tar.xz
adaptors are not ports
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10835 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r--libvo/vo_xv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libvo/vo_xv.c b/libvo/vo_xv.c
index d356d9817f..7b7b68d80a 100644
--- a/libvo/vo_xv.c
+++ b/libvo/vo_xv.c
@@ -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;