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:
parent
4b1954b490
commit
a6be74786e
@ -425,12 +425,12 @@ gst_va_display_initialize (GstVaDisplay * self)
|
|||||||
gpointer
|
gpointer
|
||||||
gst_va_display_get_va_dpy (GstVaDisplay * self)
|
gst_va_display_get_va_dpy (GstVaDisplay * self)
|
||||||
{
|
{
|
||||||
VADisplay dpy;
|
GstVaDisplayPrivate *priv;
|
||||||
|
|
||||||
g_return_val_if_fail (GST_IS_VA_DISPLAY (self), NULL);
|
g_return_val_if_fail (GST_IS_VA_DISPLAY (self), NULL);
|
||||||
|
priv = GET_PRIV (self);
|
||||||
|
|
||||||
g_object_get (self, "va-display", &dpy, NULL);
|
return priv->display;
|
||||||
return dpy;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user