va: display: Optimize out some property indirection

Because it was visible during some profiling, I thought it cost nothing
to optimize out the uneeded property get roundtrip.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8179>
This commit is contained in:
Nicolas Dufresne 2024-12-18 13:35:53 -05:00
parent 4b1954b490
commit a6be74786e

View file

@ -425,12 +425,12 @@ gst_va_display_initialize (GstVaDisplay * self)
gpointer
gst_va_display_get_va_dpy (GstVaDisplay * self)
{
VADisplay dpy;
GstVaDisplayPrivate *priv;
g_return_val_if_fail (GST_IS_VA_DISPLAY (self), NULL);
priv = GET_PRIV (self);
g_object_get (self, "va-display", &dpy, NULL);
return dpy;
return priv->display;
}
/**