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:
Gwenole Beauchesne 2013-11-26 17:11:22 +01:00
parent e01d48feba
commit a6b8f94470

View file

@ -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;
}