summaryrefslogtreecommitdiff
path: root/src/libspudec/spu.c
diff options
context:
space:
mode:
authorMichael Roitzsch <mroi@users.sourceforge.net>2003-05-03 14:24:06 +0000
committerMichael Roitzsch <mroi@users.sourceforge.net>2003-05-03 14:24:06 +0000
commit34e74e991401a7067125e67b3f9125a81c4f8780 (patch)
tree3beb8a159466768bdea9949efa868f8affcf7014 /src/libspudec/spu.c
parent1c829d868c5785c27b70d3b4aa6009ae4a42898b (diff)
downloadxine-lib-34e74e991401a7067125e67b3f9125a81c4f8780.tar.gz
xine-lib-34e74e991401a7067125e67b3f9125a81c4f8780.tar.bz2
as announced on xine-devel:
* I change the SPU decoder API to make it look less DVD specific * adapt all related files * increase SPU decoder API version * include DVDNAV_CFLAGS locally where needed CVS patchset: 4755 CVS date: 2003/05/03 14:24:06
Diffstat (limited to 'src/libspudec/spu.c')
-rw-r--r--src/libspudec/spu.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/libspudec/spu.c b/src/libspudec/spu.c
index c2e8ccabc..b09314b20 100644
--- a/src/libspudec/spu.c
+++ b/src/libspudec/spu.c
@@ -35,7 +35,7 @@
* along with this program; see the file COPYING. If not, write to
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
*
- * $Id: spu.c,v 1.65 2003/05/02 15:54:33 miguelfreitas Exp $
+ * $Id: spu.c,v 1.66 2003/05/03 14:24:06 mroi Exp $
*
*/
@@ -364,18 +364,15 @@ void spudec_process (spudec_decoder_t *this, uint32_t stream_id) {
continue;
}
if ( this->pci.hli.hl_gi.fosl_btnn > 0) {
- spu_button_t spu_button;
+ int buttonN;
xine_event_t event;
this->buttonN = this->pci.hli.hl_gi.fosl_btnn ;
event.type = XINE_EVENT_INPUT_BUTTON_FORCE;
event.stream = this->stream;
- event.data = &spu_button;
- event.data_length = sizeof(spu_button);
- spu_button.buttonN = this->buttonN;
- /* The BUTTON_FORCE event cannot call "get_nav_pci",
- so the nav_pci info has to be passed in the event instead. */
- memcpy(&spu_button.nav_pci, &this->pci, sizeof(pci_t) );
+ event.data = &buttonN;
+ event.data_length = sizeof(buttonN);
+ buttonN = this->buttonN;
xine_event_send(this->stream, &event);
}
#ifdef LOG_BUTTON