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

Christian P. Schmidt schmidt at digadd.de
Mon Aug 31 17:02:05 CEST 2009


Reimar Döffinger wrote:
> On Mon, Aug 31, 2009 at 04:07:24PM +0300, Christian P. Schmidt wrote:
>> 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.
> 
> You should have done svn up first, the try_load_config I used was
> already there, the const changes I have already made too (though one
> slightly different).

Least invasive, against updated svn, tested on linux for both invocation
cases (with/without path).

And this time with the right v4 path attached.

Regards,
Christian



-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: dirwide-mplayer-conf.v4.0.patch
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20090831/6d2a9804/attachment.asc>


More information about the MPlayer-dev-eng mailing list