[MPlayer-dev-eng] [PATCH] Add support for directory-wide configuration overrides V3.0

Christian P. Schmidt schmidt at digadd.de
Mon Aug 31 15:07:24 CEST 2009


Reimar Döffinger wrote:
> On Mon, Aug 31, 2009 at 11:52:02AM +0300, Christian P. Schmidt wrote:
>> Reimar Döffinger wrote:
>>> On Mon, Aug 31, 2009 at 10:32:19AM +0300, Christian P. Schmidt wrote:
>>>> Diego Biurrun wrote:
>>>>> On Sun, Aug 30, 2009 at 03:04:12PM +0300, Christian P. Schmidt wrote:
>>>>>> --- mplayer.c	(revision 29565)
>>>>>> +++ mplayer.c	(working copy)
>>>>>> @@ -916,10 +917,26 @@
>>>>>>  
>>>>>> +    if (use_filedir_conf)
>>>>>> +    {
>>>>> if (use_filedir_conf) {
>>>> That breaks the style currently in use in the function. Is it ok to mix
>>>> styles?
>>> Sorry you already got the cosmetic comments, the more significant is
>>> that there is already code to find the start of the file name a few
>>> lines below, you should move that up and reuse instead of duplicating
>>> it (so I'll only have to fix one place once I find the time to test on
>>> Windows).
>> Right, redid the whole function.
> 
> I was thinking of something that makes the whole thing (patch and
> resulting code) simpler, not more confusing.
> Something similar to this untested patch:

Using extra variables is like cheating ;)

The second patch silences a few warnings by making some variables const.

Regards,
Christian
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: dirwide-mplayer-conf.v3.0.patch
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20090831/627feaed/attachment.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: silence-warnings.v1.0.patch
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20090831/627feaed/attachment.asc>


More information about the MPlayer-dev-eng mailing list