mfplat: Add a warning for buffer method failure (Coverity).

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
feature/deterministic
Nikolay Sivov 2020-03-30 14:21:28 +03:00 committed by Alexandre Julliard
parent cb3517a1bf
commit 910ec21b5a
1 changed files with 2 additions and 1 deletions

View File

@ -1211,7 +1211,8 @@ static HRESULT sample_copy_to_buffer(struct sample *sample, IMFMediaBuffer *buff
}
}
IMFMediaBuffer_SetCurrentLength(buffer, dst_current_length);
if (FAILED(IMFMediaBuffer_SetCurrentLength(buffer, dst_current_length)))
WARN("Failed to set buffer length.\n");
if (locked)
IMFMediaBuffer_Unlock(buffer);