If we don't have functional vpp then we should not call
gst_vaapi_filter_set_colorimetry.
gst_vaapipostproc_set_passthrough (trans);
}
- ret = gst_vaapi_filter_set_colorimetry (postproc->filter,
- &GST_VIDEO_INFO_COLORIMETRY (GST_VAAPI_PLUGIN_BASE_SINK_PAD_INFO
- (postproc)),
- &GST_VIDEO_INFO_COLORIMETRY (GST_VAAPI_PLUGIN_BASE_SRC_PAD_INFO
- (postproc)));
+ if (postproc->has_vpp && !gst_vaapi_filter_set_colorimetry (postproc->filter,
+ &GST_VIDEO_INFO_COLORIMETRY (GST_VAAPI_PLUGIN_BASE_SINK_PAD_INFO
+ (postproc)),
+ &GST_VIDEO_INFO_COLORIMETRY (GST_VAAPI_PLUGIN_BASE_SRC_PAD_INFO
+ (postproc))))
+ goto done;
+
+ ret = TRUE;
done:
g_mutex_unlock (&postproc->postproc_lock);