[Android] Fix audio patch with updated vlc.git

Jean-Baptiste Kempf git at videolan.org
Wed May 23 21:45:22 CEST 2012


android | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Wed May 23 21:43:53 2012 +0200| [70de38c764432d2b261c76b8f23bb03dd1a5618c] | committer: Jean-Baptiste Kempf

Fix audio patch with updated vlc.git

> http://git.videolan.org/gitweb.cgi/android.git/?a=commit;h=70de38c764432d2b261c76b8f23bb03dd1a5618c
---

 compile.sh                                              |    2 +-
 patches/0001-android-threads-support.patch              |    2 +-
 ...0002-Android-add-native-AudioTrack-aout-module.patch |   15 ++++++++-------
 ...-add-language-and-frame-rate-to-libvlc_media_t.patch |    2 +-
 4 files changed, 11 insertions(+), 10 deletions(-)

diff --git a/compile.sh b/compile.sh
index 5e2be69..5d806f6 100755
--- a/compile.sh
+++ b/compile.sh
@@ -40,7 +40,7 @@ fi
 export PATH=${ANDROID_NDK}/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin:${PATH}
 
 # 1/ libvlc, libvlccore and its plugins
-TESTED_HASH=0ef62578e5b6
+TESTED_HASH=2ac6942827e8
 if [ ! -d "vlc" ]; then
     echo "VLC source not found, cloning"
     git clone git://git.videolan.org/vlc.git vlc
diff --git a/patches/0001-android-threads-support.patch b/patches/0001-android-threads-support.patch
index 74b7c34..8f6ab0e 100644
--- a/patches/0001-android-threads-support.patch
+++ b/patches/0001-android-threads-support.patch
@@ -1,4 +1,4 @@
-From c38b628323daa70fb5430530e56df4d7d44be6bb Mon Sep 17 00:00:00 2001
+From ec67d929b63cdebc2af0f415ab0a54c6a3329816 Mon Sep 17 00:00:00 2001
 From: =?UTF-8?q?Rafa=C3=ABl=20Carr=C3=A9?= <funman at videolan.org>
 Date: Sat, 10 Mar 2012 04:54:23 -0500
 Subject: [PATCH 1/3] android: threads support
diff --git a/patches/0002-Android-add-native-AudioTrack-aout-module.patch b/patches/0002-Android-add-native-AudioTrack-aout-module.patch
index 6d94ae9..a3d9c08 100644
--- a/patches/0002-Android-add-native-AudioTrack-aout-module.patch
+++ b/patches/0002-Android-add-native-AudioTrack-aout-module.patch
@@ -1,8 +1,9 @@
-From 1e9eb93307aa878f37d4d97e1767474d752d21fe Mon Sep 17 00:00:00 2001
+From 3c946805a63828f4b7d5ee4a7d99a8546c74213c Mon Sep 17 00:00:00 2001
 From: Ming Hu <tewilove at gmail.com>
 Date: Sun, 13 May 2012 22:20:34 +0200
 Subject: [PATCH 2/3] Android: add native AudioTrack aout module
 
+Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
 ---
  configure.ac                      |   12 ++
  modules/audio_output/Modules.am   |    1 +
@@ -11,10 +12,10 @@ Subject: [PATCH 2/3] Android: add native AudioTrack aout module
  create mode 100644 modules/audio_output/audiotrack.c
 
 diff --git a/configure.ac b/configure.ac
-index 62d13ad..12c1cbe 100644
+index 8765b14..1bf7692 100644
 --- a/configure.ac
 +++ b/configure.ac
-@@ -3555,6 +3555,18 @@ if test "${HAVE_ANDROID}" = "1"; then
+@@ -3536,6 +3536,18 @@ if test "${HAVE_ANDROID}" = "1"; then
  fi
  
  dnl
@@ -34,7 +35,7 @@ index 62d13ad..12c1cbe 100644
  dnl
  PKG_ENABLE_MODULES_VLC([SAMPLERATE], [], [samplerate], [Resampler with libsamplerate], [auto])
 diff --git a/modules/audio_output/Modules.am b/modules/audio_output/Modules.am
-index 357bc1d..c4b5a37 100644
+index ea30d4d..85f2b3d 100644
 --- a/modules/audio_output/Modules.am
 +++ b/modules/audio_output/Modules.am
 @@ -5,6 +5,7 @@ SOURCES_auhal = auhal.c packet.c
@@ -47,7 +48,7 @@ index 357bc1d..c4b5a37 100644
  libadummy_plugin_la_CFLAGS = $(AM_CFLAGS)
 diff --git a/modules/audio_output/audiotrack.c b/modules/audio_output/audiotrack.c
 new file mode 100644
-index 0000000..0aebbbb
+index 0000000..2e5cab1
 --- /dev/null
 +++ b/modules/audio_output/audiotrack.c
 @@ -0,0 +1,302 @@
@@ -350,9 +351,9 @@ index 0000000..0aebbbb
 +        length += p_sys->at_write(p_sys->AudioTrack, (char*)(p_buffer->p_buffer) + length, p_buffer->i_buffer - length);
 +    }
 +
-+    aout_BufferFree(p_buffer);
++    block_Release( p_buffer );
 +}
 +
 -- 
-1.7.9.5
+1.7.10.2
 
diff --git a/patches/0003-libvlc-add-language-and-frame-rate-to-libvlc_media_t.patch b/patches/0003-libvlc-add-language-and-frame-rate-to-libvlc_media_t.patch
index 8dc7f94..3a92a3e 100644
--- a/patches/0003-libvlc-add-language-and-frame-rate-to-libvlc_media_t.patch
+++ b/patches/0003-libvlc-add-language-and-frame-rate-to-libvlc_media_t.patch
@@ -1,4 +1,4 @@
-From 4519e40c6b16942e46b8d4da01b7f358cd21319a Mon Sep 17 00:00:00 2001
+From 796397ae813096cb86e3effd9b6709e2039be8d4 Mon Sep 17 00:00:00 2001
 From: =?UTF-8?q?S=C3=A9bastien=20Toque?= <xilasz at gmail.com>
 Date: Sun, 22 Apr 2012 09:35:52 +0200
 Subject: [PATCH 3/3] libvlc: add language and frame rate to



More information about the Android mailing list