From aa2fae7b75f741e57bc4a9b754b5ea7518d78f47 Mon Sep 17 00:00:00 2001 From: Dodji Seketeli Date: Sat, 21 Jul 2007 23:56:13 +0200 Subject: [PATCH] misc fixes. *(EphyrHostXVQueryAdaptors): return the queried adaptors list * (EphyrHostXVQueryPortAttributes): return port attributes number --- hw/kdrive/ephyr/ephyrhostvideo.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/hw/kdrive/ephyr/ephyrhostvideo.c b/hw/kdrive/ephyr/ephyrhostvideo.c index d86f9761c..6c5891c9c 100644 --- a/hw/kdrive/ephyr/ephyrhostvideo.c +++ b/hw/kdrive/ephyr/ephyrhostvideo.c @@ -71,6 +71,7 @@ EphyrHostXVQueryAdaptors (EphyrHostXVAdaptorArray **a_adaptors) EPHYR_LOG_ERROR ("failed to query host adaptors: %d\n", ret) ; goto out ; } + *a_adaptors = result ; is_ok = TRUE ; out: @@ -207,13 +208,11 @@ EphyrHostXVQueryPortAttributes (int a_port_id, EphyrHostAttribute **a_attributes, int *a_num_attributes) { - XvAttribute *attributes=NULL ; - int num_attributes=0 ; - EPHYR_RETURN_VAL_IF_FAIL (a_attributes && a_num_attributes, FALSE) ; - attributes = XvQueryPortAttributes (hostx_get_display (), a_port_id, &num_attributes) ; - *a_attributes = (EphyrHostAttribute*)attributes ; + *a_attributes = (EphyrHostAttribute*)XvQueryPortAttributes (hostx_get_display (), + a_port_id, + a_num_attributes); return TRUE ; }