mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-21 05:26:23 +00:00
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
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue