mp3dmod: Use the bundled mpg123 and build with msvcrt.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2021-10-21 11:40:09 +02:00
parent bafb747d2d
commit 2113c42263
2 changed files with 4 additions and 8 deletions

View File

@ -1,9 +1,6 @@
MODULE = mp3dmod.dll MODULE = mp3dmod.dll
IMPORTS = dmoguids msdmo ole32 uuid wmcodecdspuuid IMPORTS = $(MPG123_PE_LIBS) dmoguids msdmo ole32 uuid wmcodecdspuuid kernelbase
EXTRAINCL = $(MPG123_CFLAGS) EXTRAINCL = $(MPG123_PE_CFLAGS)
EXTRALIBS = $(MPG123_LIBS)
EXTRADLLFLAGS = -mcygwin
C_SRCS = \ C_SRCS = \
mp3dmod.c mp3dmod.c

View File

@ -513,7 +513,7 @@ static HRESULT WINAPI MediaObject_ProcessOutput(IMediaObject *iface, DWORD flags
else if (err != MPG123_OK) else if (err != MPG123_OK)
ERR("mpg123_read() returned %d\n", err); ERR("mpg123_read() returned %d\n", err);
if (written < framesize) if (written < framesize)
ERR("short write: %zd/%u\n", written, framesize); ERR("short write: %Id/%u\n", written, framesize);
got_data = 1; got_data = 1;
@ -668,7 +668,6 @@ HRESULT WINAPI DllGetClassObject(REFCLSID clsid, REFIID iid, void **obj)
*/ */
HRESULT WINAPI DllRegisterServer(void) HRESULT WINAPI DllRegisterServer(void)
{ {
static const WCHAR nameW[] = {'M','P','3',' ','D','e','c','o','d','e','r',' ','D','M','O',0};
DMO_PARTIAL_MEDIATYPE in, out; DMO_PARTIAL_MEDIATYPE in, out;
HRESULT hr; HRESULT hr;
@ -676,7 +675,7 @@ HRESULT WINAPI DllRegisterServer(void)
in.subtype = WMMEDIASUBTYPE_MP3; in.subtype = WMMEDIASUBTYPE_MP3;
out.type = WMMEDIATYPE_Audio; out.type = WMMEDIATYPE_Audio;
out.subtype = WMMEDIASUBTYPE_PCM; out.subtype = WMMEDIASUBTYPE_PCM;
hr = DMORegister(nameW, &CLSID_CMP3DecMediaObject, &DMOCATEGORY_AUDIO_DECODER, hr = DMORegister(L"MP3 Decoder DMO", &CLSID_CMP3DecMediaObject, &DMOCATEGORY_AUDIO_DECODER,
0, 1, &in, 1, &out); 0, 1, &in, 1, &out);
if (FAILED(hr)) return hr; if (FAILED(hr)) return hr;