summaryrefslogtreecommitdiff
path: root/gst
diff options
context:
space:
mode:
Diffstat (limited to 'gst')
-rw-r--r--gst/vaapi/gstvaapidecode.c4
-rw-r--r--gst/vaapi/gstvaapisink.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/gst/vaapi/gstvaapidecode.c b/gst/vaapi/gstvaapidecode.c
index 7bec7b88..5fc2592b 100644
--- a/gst/vaapi/gstvaapidecode.c
+++ b/gst/vaapi/gstvaapidecode.c
@@ -957,7 +957,7 @@ gst_vaapidecode_ensure_allowed_caps (GstVaapiDecode * decode)
if (decode->allowed_caps)
return TRUE;
- if (!gst_vaapidecode_ensure_display (decode))
+ if (!GST_VAAPI_PLUGIN_BASE_DISPLAY (decode))
goto error_no_display;
profiles =
@@ -1001,7 +1001,7 @@ gst_vaapidecode_ensure_allowed_caps (GstVaapiDecode * decode)
/* ERRORS */
error_no_display:
{
- GST_ERROR ("failed to retrieve VA display");
+ GST_INFO_OBJECT (decode, "no VA display shared yet");
return FALSE;
}
error_no_profiles:
diff --git a/gst/vaapi/gstvaapisink.c b/gst/vaapi/gstvaapisink.c
index 7ff84012..fd225242 100644
--- a/gst/vaapi/gstvaapisink.c
+++ b/gst/vaapi/gstvaapisink.c
@@ -1206,7 +1206,7 @@ gst_vaapisink_get_caps_impl (GstBaseSink * base_sink)
if (!out_caps)
return NULL;
- if (gst_vaapisink_ensure_display (sink)) {
+ if (GST_VAAPI_PLUGIN_BASE_DISPLAY (sink)) {
raw_caps = gst_vaapi_plugin_base_get_allowed_raw_caps (GST_VAAPI_PLUGIN_BASE (sink));
if (raw_caps) {
out_caps = gst_caps_make_writable (out_caps);