aboutsummaryrefslogtreecommitdiff
path: root/multimedia/libxine
diff options
context:
space:
mode:
authorMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2002-04-18 03:08:01 +0000
committerMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2002-04-18 03:08:01 +0000
commit15f392edf55943b7f763d7005a6d9567809127d6 (patch)
treebdedb5eada505e0e201c44420009e17f899dbcd2 /multimedia/libxine
parentf01572a0094b99c50ed3a10cd227cf59405fbea3 (diff)
downloadports-15f392edf55943b7f763d7005a6d9567809127d6.tar.gz
ports-15f392edf55943b7f763d7005a6d9567809127d6.zip
Notes
Diffstat (limited to 'multimedia/libxine')
-rw-r--r--multimedia/libxine/Makefile2
-rw-r--r--multimedia/libxine/files/patch-src:liba52:xine_decoder.c58
2 files changed, 55 insertions, 5 deletions
diff --git a/multimedia/libxine/Makefile b/multimedia/libxine/Makefile
index 327dc8c1b6de..dcdfc985f720 100644
--- a/multimedia/libxine/Makefile
+++ b/multimedia/libxine/Makefile
@@ -7,7 +7,7 @@
PORTNAME= xine
PORTVERSION= 0.9.8
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= graphics
MASTER_SITES= http://xine.sourceforge.net/files/ \
${MASTER_SITE_SOURCEFORGE}
diff --git a/multimedia/libxine/files/patch-src:liba52:xine_decoder.c b/multimedia/libxine/files/patch-src:liba52:xine_decoder.c
index 926881161212..8e8fa240fe90 100644
--- a/multimedia/libxine/files/patch-src:liba52:xine_decoder.c
+++ b/multimedia/libxine/files/patch-src:liba52:xine_decoder.c
@@ -1,6 +1,6 @@
---- src/liba52/xine_decoder.c.orig Fri Oct 19 17:55:03 2001
-+++ src/liba52/xine_decoder.c Fri Oct 19 17:55:31 2001
-@@ -31,8 +31,8 @@
+--- src/liba52/xine_decoder.c.orig Sat Jan 5 21:43:16 2002
++++ src/liba52/xine_decoder.c Fri Apr 5 17:52:50 2002
+@@ -36,8 +36,8 @@
#include <fcntl.h>
#include "audio_out.h"
@@ -10,4 +10,54 @@
+#include <a52dec/a52_internal.h>
#include "buffer.h"
#include "xine_internal.h"
- #include "cpu_accel.h"
+ #include "xineutils.h"
+@@ -59,7 +59,7 @@
+ int frame_length, frame_todo;
+ uint16_t syncword;
+
+- a52_state_t a52_state;
++ a52_state_t *a52_state;
+ int a52_flags;
+ int a52_bit_rate;
+ int a52_sample_rate;
+@@ -158,8 +158,11 @@
+ this->pts = 0;
+ this->last_pts = 0;
+
+- if( !this->samples )
+- this->samples = a52_init (xine_mm_accel());
++ this->a52_state = a52_init (xine_mm_accel());
++
++ if( (this->a52_state) != NULL )
++ if( !this->samples )
++ this->samples = a52_samples (this->a52_state);
+
+ /*
+ * find out if this driver supports a52 output
+@@ -288,7 +291,7 @@
+
+ a52_output_flags = this->a52_flags_map[this->a52_flags & A52_CHANNEL_MASK];
+
+- if (a52_frame (&this->a52_state,
++ if (a52_frame (this->a52_state,
+ this->frame_buffer,
+ &a52_output_flags,
+ &level, 384)) {
+@@ -297,7 +300,7 @@
+ }
+
+ if (this->disable_dynrng)
+- a52_dynrng (&this->a52_state, NULL, NULL);
++ a52_dynrng (this->a52_state, NULL, NULL);
+
+ this->have_lfe = a52_output_flags & A52_LFE;
+ if (this->have_lfe)
+@@ -337,7 +340,7 @@
+ int_samples = buf->mem;
+
+ for (i = 0; i < 6; i++) {
+- if (a52_block (&this->a52_state, this->samples)) {
++ if (a52_block (this->a52_state)) {
+ printf ("liba52: a52_block error\n");
+ return;
+ }