Commit 8c7ad5fc authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

winegstreamer: Use IMemAllocator::GetBuffer() directly.

BaseOutputPinImpl_GetDeliveryBuffer() is doing nothing helpful here. Note that we cannot be unconnected at this point, or stream_thread() would not even be running. Signed-off-by: 's avatarZebediah Figura <zfigura@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 9d5d8df6
...@@ -753,11 +753,8 @@ static void send_buffer(struct parser_source *pin, const struct wg_parser_event ...@@ -753,11 +753,8 @@ static void send_buffer(struct parser_source *pin, const struct wg_parser_event
{ {
uint32_t advance; uint32_t advance;
hr = BaseOutputPinImpl_GetDeliveryBuffer(&pin->pin, &sample, NULL, NULL, 0); if (FAILED(hr = IMemAllocator_GetBuffer(pin->pin.pAllocator, &sample, NULL, NULL, 0)))
if (FAILED(hr))
{ {
if (hr != VFW_E_NOT_CONNECTED)
ERR("Failed to get a sample, hr %#lx.\n", hr); ERR("Failed to get a sample, hr %#lx.\n", hr);
break; break;
} }
...@@ -776,11 +773,8 @@ static void send_buffer(struct parser_source *pin, const struct wg_parser_event ...@@ -776,11 +773,8 @@ static void send_buffer(struct parser_source *pin, const struct wg_parser_event
} }
else else
{ {
hr = BaseOutputPinImpl_GetDeliveryBuffer(&pin->pin, &sample, NULL, NULL, 0); if (FAILED(hr = IMemAllocator_GetBuffer(pin->pin.pAllocator, &sample, NULL, NULL, 0)))
if (FAILED(hr))
{ {
if (hr != VFW_E_NOT_CONNECTED)
ERR("Failed to get a sample, hr %#lx.\n", hr); ERR("Failed to get a sample, hr %#lx.\n", hr);
} }
else else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment