[MPlayer-users] Playing DASH streams / .mpd files
Reimar Döffinger
Reimar.Doeffinger at gmx.de
Wed Mar 17 20:56:10 EET 2021
On Wed, Mar 17, 2021 at 12:13:08PM -0400, The Wanderer wrote:
> Index: configure
> ===================================================================
> --- configure (revision 38303)
> +++ configure (working copy)
> @@ -736,6 +736,7 @@
> _kai=auto
> _dart=auto
> _openal=auto
> +_libxml2=auto
Possibly should add a enable/disable option as well?
Might make it easier to test this code without having
to install and uninstall the -dev package.
Also it's pointless if internal FFmpeg is disabled,
maybe have it forced to no in that case?
> +echocheck "libxml2"
> +if test "$_libxml2" = auto; then
> + cat > $TMPC << EOF
> +#include <libxml/xmlstring.h>
> +int main() {
> + xmlChar *str = "";
> + return xmlStrlen(str);
> +}
> +EOF
> + _libxml2=no
> + inc_tmp=$($_pkg_config --cflags libxml-2.0)
> + ld_tmp=$($_pkg_config --libs libxml-2.0)
> + cc_check $inc_tmp $ld_tmp && _libxml2=yes
> + if test "$_libxml2" = yes; then
If adding a enable/disable option, this part
probably should go outside of the "auto" if.
> + extra_ldflags="$extra_ldflags $ld_tmp"
> + extra_cflags="$extra_cflags $inc_tmp"
> + fi
Most importantly you would want to remove DASH from here (approx. line 1661):
libavdemuxers=$(filter_out_component demuxer 'AVISYNTH DASH LIB[A-Z0-9_]* REDIR VAPOURSYNTH')
and in the "else" case when libxml2 is disabled do a
libavdemuxers=$(filter_out_component demuxer 'DASH')
Otherwise the patch looks like the right approach, yes.
More information about the MPlayer-users
mailing list