Commit e766aaf2 authored by Peter Seiderer's avatar Peter Seiderer Committed by Víctor Manuel Jáquez Leal

msdkenc: fix error handling in case of unsupported hardware

Check the return value of gst_msdk_context_ensure_context and
abort in case of failure.

parent 9b19968a
......@@ -1422,9 +1422,9 @@ gst_msdkenc_start (GstVideoEncoder * encoder)
gst_msdk_context_add_job_type (thiz->context, GST_MSDK_JOB_ENCODER);
} else {
gst_msdk_context_ensure_context (GST_ELEMENT_CAST (thiz), thiz->hardware,
if (!gst_msdk_context_ensure_context (GST_ELEMENT_CAST (thiz),
thiz->hardware, GST_MSDK_JOB_ENCODER))
return FALSE;
GST_INFO_OBJECT (thiz, "Creating new context %" GST_PTR_FORMAT,
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment