qcap: Get rid of V4l_Unprepare().

Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zebediah Figura 2019-04-10 22:31:59 -05:00 committed by Alexandre Julliard
parent 0652a2ccc9
commit b42f79129d
1 changed files with 2 additions and 7 deletions

View File

@ -131,11 +131,6 @@ static HRESULT V4l_Prepare(Capture *device)
return S_OK;
}
static void V4l_Unprepare(Capture *device)
{
heap_free(device->image_data);
}
HRESULT qcap_driver_destroy(Capture *capBox)
{
TRACE("%p\n", capBox);
@ -439,7 +434,7 @@ static DWORD WINAPI ReadThread(LPVOID lParam)
if (FAILED(hr) && hr != VFW_E_NOT_CONNECTED)
{
TRACE("Return %x, stop IFilterGraph\n", hr);
V4l_Unprepare(capBox);
heap_free(capBox->image_data);
capBox->thread = 0;
capBox->stopped = TRUE;
break;
@ -559,7 +554,7 @@ HRESULT qcap_driver_stop(Capture *capBox, FILTER_STATE *state)
if (hr != S_OK && hr != VFW_E_NOT_COMMITTED)
WARN("Decommitting allocator: %x\n", hr);
}
V4l_Unprepare(capBox);
heap_free(capBox->image_data);
}
*state = State_Stopped;