Skip to content

Commit

Permalink
winegstreamer: Implement MFT_MESSAGE_COMMAND_DRAIN for aac decoder.
Browse files Browse the repository at this point in the history
CW-Bug-Id: #21804
CW-Bug-Id: #22299
  • Loading branch information
Paul Gofman authored and rbernon committed Feb 20, 2024
1 parent e311daf commit 3a3400a
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion dlls/winegstreamer/audio_decoder.c
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,18 @@ static HRESULT WINAPI transform_ProcessEvent(IMFTransform *iface, DWORD id, IMFM

static HRESULT WINAPI transform_ProcessMessage(IMFTransform *iface, MFT_MESSAGE_TYPE message, ULONG_PTR param)
{
FIXME("iface %p, message %#x, param %p stub!\n", iface, message, (void *)param);
struct audio_decoder *decoder = impl_from_IMFTransform(iface);

TRACE("iface %p, message %#x, param %p.\n", iface, message, (void *)param);

if (!decoder->wg_transform)
return MF_E_TRANSFORM_TYPE_NOT_SET;

if (message == MFT_MESSAGE_COMMAND_DRAIN)
return wg_transform_drain(decoder->wg_transform);

FIXME("Ignoring message %#x.\n", message);

return S_OK;
}

Expand Down

0 comments on commit 3a3400a

Please sign in to comment.