https://github.com/videolan/vlc
Revision 189d43538940a70afaed241ed22e9f069cb44bd7 authored by Alexandre Janniaux on 25 January 2023, 13:47:54 UTC, committed by Thomas Guillem on 15 March 2023, 14:30:09 UTC
Move the AudioFormat vtable to a separate file and convenience library
so as to use the AudioFormat vtable from device.c.

The choice of a convenience library here is to compile the code only
once but be able to use it from different locations, especially since it
needs the vtable filled before using the associated function.

The commit doesn't change audiotrack yet, as the goal is mostly to fix
the dynamic build on Android, and thus duplicates part of the code from
there. Some more changes would be needed to potentially supply the
vtable as parameter and provides what's missing for audiotrack.c to use
this convenience library instead.
1 parent ddb540c
Raw File
Tip revision: 189d43538940a70afaed241ed22e9f069cb44bd7 authored by Alexandre Janniaux on 25 January 2023, 13:47:54 UTC
audio_output: android: move AudioFormat vtable
Tip revision: 189d435
make-alias
#! /bin/sh
# Interface alias build script for VLC
# Copyright © 2007 Rémi Denis-Courmont.

OUT="$1"
IFACE="$2"

cat > "$OUT.tmp" << EOF
#! /bin/sh
exec $bindir/`echo "$program_prefix"vlc"$program_suffix" | sed -e "$transform"` -I "$IFACE" "\$@"
EOF

chmod +x "$OUT.tmp"
mv -f -- "$OUT.tmp" "$OUT"
back to top