context: Use proper error path
Signed-off-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com>
This commit is contained in:
+2
-1
@@ -81,7 +81,8 @@ VAStatus SunxiCedrusCreateContext(VADriverContextP context,
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return VA_STATUS_ERROR_UNSUPPORTED_PROFILE;
|
status = VA_STATUS_ERROR_UNSUPPORTED_PROFILE;
|
||||||
|
goto error;
|
||||||
}
|
}
|
||||||
|
|
||||||
rc = v4l2_set_format(driver_data->video_fd, V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE, pixelformat, picture_width, picture_height);
|
rc = v4l2_set_format(driver_data->video_fd, V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE, pixelformat, picture_width, picture_height);
|
||||||
|
|||||||
Reference in New Issue
Block a user