mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-27 11:32:51 +00:00
vaapiencode: fix error handling in _finish() hook.
Fix GstVideoEncoder::finish() implementation to really return possible errors instead of GST_FLOW_OK. That is, fix check for timeout status.
This commit is contained in:
parent
e01d48feba
commit
a6b8f94470
1 changed files with 2 additions and 2 deletions
|
@ -705,8 +705,8 @@ gst_vaapiencode_finish (GstVideoEncoder * venc)
|
|||
while (status == GST_VAAPI_ENCODER_STATUS_SUCCESS && ret == GST_FLOW_OK)
|
||||
ret = gst_vaapiencode_push_frame (encode, 0);
|
||||
|
||||
if (ret == GST_VAAPI_ENCODE_FLOW_TIMEOUT);
|
||||
ret = GST_FLOW_OK;
|
||||
if (ret == GST_VAAPI_ENCODE_FLOW_TIMEOUT)
|
||||
ret = GST_FLOW_OK;
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue