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>
This commit is contained in:
parent
cb3517a1bf
commit
910ec21b5a
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue