[Pkg-gstreamer-commits] [gstreamer-vaapi] 15/176: vaapiencode: fix error handling in _finish() hook.
Vincent Cheng
vcheng at moszumanska.debian.org
Tue Jun 3 08:09:23 UTC 2014
This is an automated email from the git hooks/post-receive script.
vcheng pushed a commit to branch upstream
in repository gstreamer-vaapi.
commit a6b8f944705a6af3323828ab81de4f1a9ae5eb94
Author: Gwenole Beauchesne <gwenole.beauchesne at intel.com>
Date: Tue Nov 26 17:11:22 2013 +0100
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.
---
gst/vaapi/gstvaapiencode.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gst/vaapi/gstvaapiencode.c b/gst/vaapi/gstvaapiencode.c
index facbbb2..060f0e7 100644
--- a/gst/vaapi/gstvaapiencode.c
+++ b/gst/vaapi/gstvaapiencode.c
@@ -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;
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gstreamer/gstreamer-vaapi.git
More information about the Pkg-gstreamer-commits
mailing list