diff options
author | Eric Anholt <eric@anholt.net> | 2013-08-18 20:10:41 +0200 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2013-08-18 20:10:41 +0200 |
commit | 93ec2e24b3542d71438d4f269635b9da3c905093 (patch) | |
tree | c70f1194610a33d62f3f0d0965d964cc2b42b8bd | |
parent | 7c42fd5bfe767bd8f439c76f1cd36ce1aabcfbd1 (diff) |
pointephyr-rebase-works
-rw-r--r-- | hw/kdrive/ephyr/ephyrhostvideo.c | 19 | ||||
-rw-r--r-- | hw/kdrive/ephyr/ephyrhostvideo.h | 2 | ||||
-rw-r--r-- | hw/kdrive/ephyr/ephyrvideo.c | 7 |
3 files changed, 2 insertions, 26 deletions
diff --git a/hw/kdrive/ephyr/ephyrhostvideo.c b/hw/kdrive/ephyr/ephyrhostvideo.c index 20e0fdf37..5c3eb051f 100644 --- a/hw/kdrive/ephyr/ephyrhostvideo.c +++ b/hw/kdrive/ephyr/ephyrhostvideo.c @@ -43,12 +43,6 @@ #define FALSE 0 #endif /*FALSE*/ - -void -ephyrHostXVInit(void) -{ -} - Bool ephyrHostXVQueryAdaptors (xcb_xv_query_adaptors_reply_t **a_adaptors) { @@ -78,19 +72,6 @@ out: return is_ok; } -void -ephyrHostXVAdaptorArrayDelete (xcb_xv_query_adaptors_reply_t *a_adaptors) -{ - free (a_adaptors); -} - -int -ephyrHostXVAdaptorArrayGetSize (const xcb_xv_query_adaptors_reply_t *a_this) -{ - EPHYR_RETURN_VAL_IF_FAIL(a_this, -1); - return a_this->num_adaptors; -} - xcb_xv_adaptor_info_t * ephyrHostXVAdaptorArrayAt(const xcb_xv_query_adaptors_reply_t *a_this, int a_index) diff --git a/hw/kdrive/ephyr/ephyrhostvideo.h b/hw/kdrive/ephyr/ephyrhostvideo.h index 0f825637a..67a8c9ac9 100644 --- a/hw/kdrive/ephyr/ephyrhostvideo.h +++ b/hw/kdrive/ephyr/ephyrhostvideo.h @@ -88,8 +88,6 @@ void ephyrHostXVInit(void); * host adaptor array */ Bool ephyrHostXVQueryAdaptors(xcb_xv_query_adaptors_reply_t **a_adaptors); -void ephyrHostXVAdaptorArrayDelete(xcb_xv_query_adaptors_reply_t *a_adaptors); -int ephyrHostXVAdaptorArrayGetSize(const xcb_xv_query_adaptors_reply_t *a_this); xcb_xv_adaptor_info_t* ephyrHostXVAdaptorArrayAt(const xcb_xv_query_adaptors_reply_t *a_this, int a_index); diff --git a/hw/kdrive/ephyr/ephyrvideo.c b/hw/kdrive/ephyr/ephyrvideo.c index fe6806379..bf00694f7 100644 --- a/hw/kdrive/ephyr/ephyrvideo.c +++ b/hw/kdrive/ephyr/ephyrvideo.c @@ -293,8 +293,6 @@ ephyrXVPrivNew(void) goto error; } - ephyrHostXVInit(); - if (!ephyrXVPrivQueryHostAdaptors(xv_priv)) { EPHYR_LOG_ERROR("failed to query the host x for xv properties\n"); goto error; @@ -323,7 +321,7 @@ ephyrXVPrivDelete(EphyrXVPriv * a_this) if (!a_this) return; if (a_this->host_adaptors) { - ephyrHostXVAdaptorArrayDelete(a_this->host_adaptors); + free(a_this->host_adaptors); a_this->host_adaptors = NULL; } free(a_this->adaptors); @@ -402,8 +400,7 @@ ephyrXVPrivQueryHostAdaptors(EphyrXVPriv * a_this) goto out; } if (a_this->host_adaptors) - a_this->num_adaptors = - ephyrHostXVAdaptorArrayGetSize(a_this->host_adaptors); + a_this->num_adaptors = a_this->host_adaptors->num_adaptors; if (a_this->num_adaptors < 0) { EPHYR_LOG_ERROR("failed to get number of host adaptors\n"); goto out; |