Skip to content

Commit

Permalink
winegstreamer: Implement MFT_MESSAGE_COMMAND_DRAIN for video processor.
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 73410b6 commit c6fe011
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion dlls/winegstreamer/video_processor.c
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,18 @@ static HRESULT WINAPI video_processor_ProcessEvent(IMFTransform *iface, DWORD id

static HRESULT WINAPI video_processor_ProcessMessage(IMFTransform *iface, MFT_MESSAGE_TYPE message, ULONG_PTR param)
{
FIXME("iface %p, message %#x, param %#Ix stub!\n", iface, message, param);
struct video_processor *impl = impl_from_IMFTransform(iface);

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

if (!impl->wg_transform)
return MF_E_TRANSFORM_TYPE_NOT_SET;

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

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

return S_OK;
}

Expand Down

0 comments on commit c6fe011

Please sign in to comment.