misc fixes.

*(EphyrHostXVQueryAdaptors): return the queried adaptors list
        * (EphyrHostXVQueryPortAttributes): return port attributes number
This commit is contained in:
Dodji Seketeli 2007-07-21 23:56:13 +02:00 committed by Dodji Seketeli
parent 2bf7f3c223
commit aa2fae7b75

View File

@ -71,6 +71,7 @@ EphyrHostXVQueryAdaptors (EphyrHostXVAdaptorArray **a_adaptors)
EPHYR_LOG_ERROR ("failed to query host adaptors: %d\n", ret) ; EPHYR_LOG_ERROR ("failed to query host adaptors: %d\n", ret) ;
goto out ; goto out ;
} }
*a_adaptors = result ;
is_ok = TRUE ; is_ok = TRUE ;
out: out:
@ -207,13 +208,11 @@ EphyrHostXVQueryPortAttributes (int a_port_id,
EphyrHostAttribute **a_attributes, EphyrHostAttribute **a_attributes,
int *a_num_attributes) int *a_num_attributes)
{ {
XvAttribute *attributes=NULL ;
int num_attributes=0 ;
EPHYR_RETURN_VAL_IF_FAIL (a_attributes && a_num_attributes, FALSE) ; EPHYR_RETURN_VAL_IF_FAIL (a_attributes && a_num_attributes, FALSE) ;
attributes = XvQueryPortAttributes (hostx_get_display (), a_port_id, &num_attributes) ; *a_attributes = (EphyrHostAttribute*)XvQueryPortAttributes (hostx_get_display (),
*a_attributes = (EphyrHostAttribute*)attributes ; a_port_id,
a_num_attributes);
return TRUE ; return TRUE ;
} }