From 2ec81e19c049cd992906b5558cb34468136dbe6f Mon Sep 17 00:00:00 2001 From: Michael Roitzsch Date: Wed, 18 Sep 2002 15:39:51 +0000 Subject: why void *, it is a pci_t * CVS patchset: 2691 CVS date: 2002/09/18 15:39:51 --- src/libspudec/spu_decoder_api.h | 5 +---- src/libspudec/xine_decoder.c | 9 ++++----- 2 files changed, 5 insertions(+), 9 deletions(-) (limited to 'src') diff --git a/src/libspudec/spu_decoder_api.h b/src/libspudec/spu_decoder_api.h index cc42fff65..e863ac8ac 100644 --- a/src/libspudec/spu_decoder_api.h +++ b/src/libspudec/spu_decoder_api.h @@ -25,9 +25,6 @@ #define HAVE_SPU_API_H #define SPU_DECODER_IFACE_VERSION 9 -/* FIXME: Needed for spu_button_t */ -/* But will not be on all users's systems. (From the libspudec directory or libdvdread). */ -//#include "nav_types.h" /* * generic xine spu decoder plugin interface @@ -53,7 +50,7 @@ struct spu_decoder_s { void (*dispose) (spu_decoder_t *this); - int (*get_nav_pci) (spu_decoder_t *this, void *nav_pci); + int (*get_nav_pci) (spu_decoder_t *this, pci_t *nav_pci); }; diff --git a/src/libspudec/xine_decoder.c b/src/libspudec/xine_decoder.c index e62aab25f..809eac155 100644 --- a/src/libspudec/xine_decoder.c +++ b/src/libspudec/xine_decoder.c @@ -19,7 +19,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: xine_decoder.c,v 1.76 2002/09/18 04:20:09 jcdutton Exp $ + * $Id: xine_decoder.c,v 1.77 2002/09/18 15:39:51 mroi Exp $ * * stuff needed to turn libspu into a xine decoder plugin */ @@ -295,15 +295,14 @@ static void spudec_dispose (spu_decoder_t *this_gen) { /* This is not perfectly in sync with the display, but all the same, */ /* much closer than doing it at the input stage. */ /* returns a bool for error/success.*/ -static int spudec_get_nav_pci (spu_decoder_t *this_gen, void *pci) { +static int spudec_get_nav_pci (spu_decoder_t *this_gen, pci_t *pci) { spudec_decoder_t *this = (spudec_decoder_t *) this_gen; - pci_t *nav_pci = (pci_t *) pci; - if (!this || !nav_pci) + if (!this || !pci) return 0; pthread_mutex_lock(&this->nav_pci_lock); - memcpy(nav_pci, &this->pci, sizeof(pci_t) ); + memcpy(pci, &this->pci, sizeof(pci_t) ); pthread_mutex_unlock(&this->nav_pci_lock); return 1; -- cgit v1.2.3