mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-08 23:42:28 +00:00
mfvideoencoder: Check HRESULT code as well for GPU sync
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2037>
This commit is contained in:
parent
00ae87cbb5
commit
39dd92fa5e
1 changed files with 1 additions and 1 deletions
|
@ -1164,7 +1164,7 @@ gst_mf_video_encoder_create_input_sample_d3d11 (GstMFVideoEncoder * self,
|
||||||
|
|
||||||
/* Wait until all issued GPU commands are finished */
|
/* Wait until all issued GPU commands are finished */
|
||||||
do {
|
do {
|
||||||
context_handle->GetData (query.Get (), &sync_done, sizeof (BOOL), 0);
|
hr = context_handle->GetData (query.Get (), &sync_done, sizeof (BOOL), 0);
|
||||||
} while (!sync_done && (hr == S_OK || hr == S_FALSE));
|
} while (!sync_done && (hr == S_OK || hr == S_FALSE));
|
||||||
|
|
||||||
if (!gst_d3d11_result (hr, dmem->device)) {
|
if (!gst_d3d11_result (hr, dmem->device)) {
|
||||||
|
|
Loading…
Reference in a new issue