Re: Playing DASH streams / .mpd files

The Wanderer <[email protected]>
Newsgroups gmane.comp.video.mplayer.user
Organization This space intentionally left blank.
Message-ID <[email protected]>
On 2021-03-17 at 11:01, Reimar Döffinger wrote:

> On 17 March 2021 14:09:14 CET, The Wanderer <[email protected]>
> wrote:
> 
>> On 2021-03-17 at 06:31, Martin Simmons wrote:

>>> It is also a dependency on CentOS 7.9.2009, indirectly from libblueray:
>>> 
>>> $ /usr/bin/mplayer | head -n1
>>> MPlayer SVN-r37391-4.8.3 (C) 2000-2015 MPlayer Team
>>> $ env LD_DEBUG=files ldd /usr/bin/mplayer 2>&1 | grep -i libxml
>>>       6026:	file=libxml2.so.2 [0];  needed by /lib64/libbluray.so.1 [0]
>>>       6026:	file=libxml2.so.2 [0];  generating link map
>>> 	libxml2.so.2 => /lib64/libxml2.so.2 (0x00007f0b7ad84000)
>>
>> Same here, with a locally-built copy from then-current SVN (plus
>> "internal" FFmpeg) this past October.
> 
> Ok ok, fair enough.
> That "just" leaves the practical problem that someone needs to write
> a configure check for libxml2.

It seemed like it should be straightforward enough; here's a trivial,
naive one, testing only for presence and linking (no version recency, et
cetera). It seems to work in my environment, as far as detecting the
presence of the library and getting the flags added to subsequent
compilation checks in the configure run without breaking other configure
checks that were previously passing, but I'm not sure how to properly
validate such a thing.

I wasn't at all sure where in the test order to put this. As written it
needs to go after the pkg-config check, but I don't see any obvious
ordering of the checks to base a decision on beyond that.

I'm running a compile test of the result now, but I have no reason to
expect that it would fail even if this is somehow broken, so it's just a
level of sanity validation.

Feedback would be appreciated.

-- 
   The Wanderer

The reasonable man adapts himself to the world; the unreasonable one
persists in trying to adapt the world to himself. Therefore all
progress depends on the unreasonable man.         -- George Bernard Shaw

_______________________________________________
MPlayer-users mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/mplayer-users
configure-test-for-libxml2.diff (text/x-diff, 956 B)
Index: configure
===================================================================
--- configure	(revision 38303)
+++ configure	(working copy)
@@ -736,6 +736,7 @@
 _kai=auto
 _dart=auto
 _openal=auto
+_libxml2=auto
 _libcdio=auto
 _liblzo=auto
 _mad=auto
@@ -6490,7 +6491,28 @@
 fi
 echores "$_dvdread"
 
+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
+        extra_ldflags="$extra_ldflags $ld_tmp"
+        extra_cflags="$extra_cflags $inc_tmp"
+    fi
 
+fi
+echores "$_libxml2"
+
+
 echocheck "libcdio"
 header_check cdio/cdda.h && _inc_paranoia=cdio || _inc_paranoia=cdio/paranoia
 if test "$_libcdio" = auto ; then
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEJCOqsZEc2qVC44pUBKk1jTQoMmsFAmBSKpQACgkQBKk1jTQo
Mmtrbw//aDiZkbFqaN6ACAkcuSmYlt+M3oF89tz/C/JMcfRzd2RB2FpDJPTKLCmb
8XIpbRwgj/HKKa9mddIf5mNAAl3Ey2ui/z834XEojb0IQI0+ba9ENvrM5JLllOyP
kJ1/VWHcWl3j2qDfuqAfyaa0kPG+lDmsfAgPfU5IcoGVHi2bzFYIjNJT5QCaNdy3
+LkjBTYxRFTQnHsPj/rM22twNQ3B3Ze9vyDwp4ad0sWOOhPFhaQYzilxE/lmTvNm
sU6LuH83ESlHkrlRdGEaQguOqeBwgIHxRDvtQwsQFTxJXqAfUbvBMOOdXjITalrx
bMy7egruQmlpGkcf0luGjTv3Mwtpokn2fyiq73si4gUohWiwlbcqc8TzXJS4rr/5
j9F5m1CFVBA2TK+bBb+MaA0cS13bHyvyRDc9PfXpUd+oT9CDdaw9CSyhlt/PoNDW
j6ldyRmh96uPvHQiL2Q1+IYHrkx9unqbh2QRHvWMC1mr17PGYJAtSsUAstDTdoaN
d7k3L+DI7AFNg+tJfV40awX/RfRCHSwE2+IqDxNo6EX4r2JEDxdfrLRGgIZjKbZV
CoMTg4DX/dIxAXTyqRqCVMvg5otrxsRbaH0I07VkCaZTOkbDrfw8sxivAraYmpdN
lIkw6s9n3/wqpg4KR9dVVX2eTtZiQ8+6CcOOFDqfqP1AOUSxVt0=
=cf1t
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.