Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
avoid asserts when color convertion fails
This patch exposes the color convertion failure in this case gst-play-1.0 HPCAMOLQ_BRCM_B.264 --videosink=xvimagesink This pipeline will ask to the VPP to convert from GRAY8 to YV12, which is the negotiated format with the XV renderer. But this conversion fails. Without this patch, an assert will show up: i965_proc_picture(VADriverContextP, VAProfile, union codec_state *, struct hw_context *): Assertion `status == 0x00000000' failed. With this patch, the error is handled correctly, throwing a meaningful error in GStreamer: 0:00:00.802303348 3584 0x7feff0003400 ERROR vaapipostproc gstvaapipostproc.c:805:gst_vaapipostproc_process_vpp:<vaapipostproc0> failed to apply VPP filters (error 2) Though, the correct fix implies to enable VPP with this color conversion. Signed-off-by: Víctor Manuel Jáquez Leal <[email protected]> Reviewed-by: Sean V Kelley <[email protected]>
- Loading branch information