Re: [PATCH] MNG detection fails with libjpeg-turbo

The Wanderer <[email protected]>
Newsgroups gmane.comp.video.mplayer.devel
Organization This space intentionally left blank.
Message-ID <[email protected]>
On 2017-12-01 at 18:11, Alexander Strasser wrote:

> On 2017-11-30 23:21 -0500, The Wanderer wrote:
> 
>> On 2017-11-30 at 16:23, Alexander Strasser wrote:

>>> Would you be OK with omitting the function defined in the
>>> previous hunk and changing this to use statement_check_broken ?
>> 
>> I would have no objection to it, as long as we understand what
>> it's doing and what the consequences will be.
>> 
>> My primary concern is: why was this put there in the first place? 
>> Presumably it served some purpose at some point...
> 
> I did some digging... it was like that since it was added in 2008.
> The configure check for libmng was initially added for the mng
> demuxer.
> 
> Then I looked at the actual mail thread, where the patch was
> discussed. It was first submitted with a configrue check that
> executed the compiled binary. That was questioned and later deemed
> not acceptable because it would always make the test fail when
> cross-compiling:
> 
> http://mplayerhq.hu/pipermail/mplayer-dev-eng/2008-September/058673.html

I haven't taken the time to read the discussion now, but based on that
description, I think I may even vaguely remember its occurring.

>> I'd be leery of dropping code whose intended purpose we don't know
>> or understand, but if it works equally well without that and we
>> make sure that our own reasoning is findable in case someone does
>> turn up a problem which could be the reason later on, then I have
>> no strong objection.
> 
> With above explanation added to the commit message, that would
> explain our reasoning, right?

It would be even better than what I'd intended, which was just to
explain "since this is never run, we don't see how it can be useful, so
we're dropping it rather than make other parts of the code more complex;
however, we don't know why this was added, so this may need to be
revisited in the future".

Since you've tracked down the reason why it was added, no such "we don't
know" caveat is needed, and I don't see any reason not to drop that
return statement. IMO it should probably have been removed along with
the removal of "execute the compile-check binary".

> After doing some code archaeology, I still intent to apply my local 
> version.

I approve this.

-- 
   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-dev-eng mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/mplayer-dev-eng
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEJCOqsZEc2qVC44pUBKk1jTQoMmsFAloh8pYACgkQBKk1jTQo
MmtwWQ//Y7ggAFTJTPPopYJj+7C/YiZR0w83s0vIMG+L/y7yjaoibU+osV34Xo4f
6RVyugKy99kzxsgmcuK4LtD3IXaF88RYazjB2lins2ZlFqMCGjYaSxYLI6Sj5dEP
4fCn959en4wGzjbNEZNt9PUXZT/pFbZjrWpr6O1X0Aq1R3buJgq3ZOZHNjusmB9A
1NWvwEO9m/hxL9dnlzBv01BRLFnUbKfJdduPhG3lGns6Cj3y9zi6LFymKKwis41e
y3TZ+IhVwWsOA01ucqlcy1fhiK1u2PPfx9ZwoEQQMK4YPY1SiXhJJuad6pMAoTb9
gentLgIUNoEwFxym/gK7wh6qX+RcktXx6Lm9pyHFT94zkbnNEi0SzAe3r6YZgla6
OUN1QyLeszgemJn1vmmI4vRGoO8v5UaEW6qDU/ZfuhLotRK+r2oatq37rvmBFoqh
I3H/odKOAVwruqKUpRbmJbI3wvkq6m3vF3BdaG6A8w3ZMAF4XkxeeDgzsGx+eu5r
YhyhJC2fbl2vQN9cfpeChHy9LD57Lqqgf8DVDUQEWxI6adViAZUEKZjzdfmuvv/j
RYJXye/vZCL4oAvjTn4lQB09vpTbn6QjUWVCIycuss+oXGcVMrNxOAt/lnDAy+Ur
OvoNh/tVf1YJh8siJa8WkI0yCTiZ3iXG2aZ1HXpls4vJfZ6KGwM=
=m/sv
-----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.