diff --git a/subprojects/gst-plugins-bad/sys/va/gstvabasedec.c b/subprojects/gst-plugins-bad/sys/va/gstvabasedec.c index 736163e7f2..0847101d5f 100644 --- a/subprojects/gst-plugins-bad/sys/va/gstvabasedec.c +++ b/subprojects/gst-plugins-bad/sys/va/gstvabasedec.c @@ -658,8 +658,7 @@ gst_va_base_dec_set_context (GstElement * element, GstContext * context) if (!ret || (old_display && new_display && old_display != new_display && base->decoder)) { - GST_ELEMENT_WARNING (base, RESOURCE, BUSY, - ("Can't replace VA display while operating"), (NULL)); + GST_WARNING_OBJECT (base, "Can't replace VA display while operating"); } gst_clear_object (&old_display); diff --git a/subprojects/gst-plugins-bad/sys/va/gstvabaseenc.c b/subprojects/gst-plugins-bad/sys/va/gstvabaseenc.c index d5eca0abf5..31d125d3dc 100644 --- a/subprojects/gst-plugins-bad/sys/va/gstvabaseenc.c +++ b/subprojects/gst-plugins-bad/sys/va/gstvabaseenc.c @@ -850,8 +850,7 @@ gst_va_base_enc_set_context (GstElement * element, GstContext * context) if (!ret || (old_display && new_display && old_display != new_display && base->encoder)) { - GST_ELEMENT_WARNING (element, RESOURCE, BUSY, - ("Can't replace VA display while operating"), (NULL)); + GST_WARNING_OBJECT (element, "Can't replace VA display while operating"); } gst_clear_object (&old_display); diff --git a/subprojects/gst-plugins-bad/sys/va/gstvabasetransform.c b/subprojects/gst-plugins-bad/sys/va/gstvabasetransform.c index 65de9b7d59..e6a8bf4afc 100644 --- a/subprojects/gst-plugins-bad/sys/va/gstvabasetransform.c +++ b/subprojects/gst-plugins-bad/sys/va/gstvabasetransform.c @@ -610,8 +610,7 @@ gst_va_base_transform_set_context (GstElement * element, GstContext * context) if (!ret || (old_display && new_display && old_display != new_display && self->filter)) { - GST_ELEMENT_WARNING (element, RESOURCE, BUSY, - ("Can't replace VA display while operating"), (NULL)); + GST_WARNING_OBJECT (element, "Can't replace VA display while operating"); } gst_clear_object (&old_display); diff --git a/subprojects/gst-plugins-bad/sys/va/gstvacompositor.c b/subprojects/gst-plugins-bad/sys/va/gstvacompositor.c index 4b5a5fac4a..b4b4f6eef7 100644 --- a/subprojects/gst-plugins-bad/sys/va/gstvacompositor.c +++ b/subprojects/gst-plugins-bad/sys/va/gstvacompositor.c @@ -420,8 +420,7 @@ gst_va_compositor_set_context (GstElement * element, GstContext * context) if (!ret || (old_display && new_display && old_display != new_display && self->filter)) { - GST_ELEMENT_WARNING (element, RESOURCE, BUSY, - ("Can't replace VA display while operating"), (NULL)); + GST_WARNING_OBJECT (element, "Can't replace VA display while operating"); } gst_clear_object (&old_display);