[MPlayer-cvslog] r30897 - in trunk: DOCS/man/en/mplayer.1 cfg-common-opts.h get_path.h mencoder.c mplayer.c

KO Myung-Hun komh at chollian.net
Tue Mar 16 14:46:32 CET 2010


Diego Biurrun wrote:
> On Tue, Mar 16, 2010 at 08:57:29PM +0900, KO Myung-Hun wrote:
>> Diego Biurrun wrote:
>>> On Mon, Mar 15, 2010 at 09:30:06AM +0100, komh wrote:
>>>>
>>>> Log:
>>>> Add -codecpath option.
>>>> It allows to search binary codecs in non-standard directories.
>>>> --- trunk/get_path.h	Mon Mar 15 07:39:21 2010	(r30896)
>>>> +++ trunk/get_path.h	Mon Mar 15 09:30:06 2010	(r30897)
>>>> @@ -24,4 +24,10 @@
>>>>  
>>>> +#ifdef CONFIG_WIN32DLL
>>>> +extern void SetCodecPath(const char *);   // in loader/drv.c
>>>
>>> Declaring this function here is wrong.  get_path.h is for functions
>>> from get_path.c.  
>>
>> I think so, too.
>>
>>> Also, SetCodecPath is already declared in loader/drv.h
>>> so you should be able to use that header instead.
>>>
>>
>> Why I don't prefer to include the headers in loader into other places,
>> is it can cause conflicts with OS/2 headers, maybe Windows headers as well.
> 
> We shall have to find out then.
> 

If so, should another patch be submitted to fix it when a problem occurs
actually?

>>>> +static char *codec_path=NULL;
>>>
>>> Again, this is not the right place to declare this as it's not related
>>> to get_path.c.  
>>
>> I agree, any suggestion ?
>>
>> Frankly, I prefer the original method even though the common codes
>> should be placed on both mencoder.c and mplayer.c.
> 
> I'm no longer terribly against that.  You could try mpcommon.h though.
> 

mpcommon.h seems to be better.

-- 
KO Myung-Hun

Using Mozilla SeaMonkey 2.0.3
Under OS/2 Warp 4 for Korean with FixPak #15
On AMD ThunderBird 1GHz with 512 MB RAM

Korean OS/2 User Community : http://www.ecomstation.co.kr



More information about the MPlayer-cvslog mailing list