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

msdkdec: fix error handling in case of unsupported hardware

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

gstreamer/gst-plugins-bad#945
parent e766aaf2
Pipeline #29727 passed with stages
in 48 minutes and 9 seconds
......@@ -675,8 +675,9 @@ gst_msdkdec_start (GstVideoDecoder * decoder)
gst_msdk_context_add_job_type (thiz->context, GST_MSDK_JOB_DECODER);
}
} else {
gst_msdk_context_ensure_context (GST_ELEMENT_CAST (thiz), thiz->hardware,
GST_MSDK_JOB_DECODER);
if (!gst_msdk_context_ensure_context (GST_ELEMENT_CAST (thiz),
thiz->hardware, GST_MSDK_JOB_DECODER))
return FALSE;
GST_INFO_OBJECT (thiz, "Creating new context %" GST_PTR_FORMAT,
thiz->context);
}
......
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