[MPlayer-dev-eng] [PATCH] Fix libdvdcss on OS/2
KO Myung-Hun
komh78 at gmail.com
Wed Jan 23 06:57:40 CET 2013
Hi/2.
Diego Biurrun wrote:
> On Tue, Jan 22, 2013 at 09:14:13AM -0800, Dave Yeo wrote:
>> On 01/22/13 03:32 am, Diego Biurrun wrote:
>>> On Tue, Jan 22, 2013 at 11:49:48AM +0100, Erik Auerswald wrote:
>>>> On Tue, Jan 22, 2013 at 11:14:54AM +0100, Diego Biurrun wrote:
>>>>> On Mon, Jan 21, 2013 at 11:47:56PM -0800, Dave Yeo wrote:
>>>>>> r35807 seems to have broke compilation on OS/2 due to OS/2 having
>>>>>> direct.h and it being unconditionally checked for.
>>>>>
>>>>> How can a check break OS/2? The issue must be somewhere else.
>>>>
>>>> By activating a Windows-specific feature that was deactivated before...
>>>
>>> Yes, but how exactly?
>>
>> libdvdcss/libdvdcss.c: In function 'dvdcss_open':
>> libdvdcss/libdvdcss.c:242: error: expected ')' before '*' token
>> libdvdcss/libdvdcss.c:249: error: 'MAX_PATH' undeclared (first use
>> in this function)
>> libdvdcss/libdvdcss.c:249: error: (Each undeclared identifier is
>> reported only once
>> libdvdcss/libdvdcss.c:249: error: for each function it appears in.)
>> libdvdcss/libdvdcss.c:250: error: 'HINSTANCE' undeclared (first use
>> in this function)
>> libdvdcss/libdvdcss.c:250: error: expected ';' before 'p_dll'
>> ...
>> [more errors]
>>
>>> And does upstream libdvdcss work?
>>
>> Yes, the direct_h test includes win.h
>>
>>> In any case patches to libdvdcss should be submitted upstream.
>>
>> Or don't unconditionally include direct.h. It is only used in
>> dvdcss.c and libavformat/os_support.h where it is wrapped in a
>> #ifdef _WIN32.
>> I'll look into it more after work
>
> Please look into upstream libdvdcss and patch that, MPlayer can later
> pick up the fix from there.
>
I've confirmed that the upstream has no problem.
This is a problem of MPlayer configure.
I attach a patch.
--
KO Myung-Hun
Using Mozilla SeaMonkey 2.7.2
Under OS/2 Warp 4 for Korean with FixPak #15
In VirtualBox v4.1.22 on Intel Core i7-3615QM 2.30GHz with 8GB RAM
Korean OS/2 User Community : http://www.ecomstation.co.kr
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: direct.diff
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20130123/a5e37cca/attachment.ksh>
More information about the MPlayer-dev-eng
mailing list