changeset 10834:cf404c558dd5

adaptors are not ports
author attila
date Sun, 07 Sep 2003 14:45:10 +0000
parents 0b8a63b626b2
children f62edb96bc21
files libvo/vo_xv.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_xv.c	Sun Sep 07 13:50:25 2003 +0000
+++ b/libvo/vo_xv.c	Sun Sep 07 14:45:10 2003 +0000
@@ -623,7 +623,7 @@
     }
 
    /* 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;