From: Nicolas Dufresne Date: Wed, 18 Dec 2024 18:35:53 +0000 (-0500) Subject: va: display: Optimize out some property indirection X-Git-Tag: 1.24.11~21 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ba103ee14a4be14fa12c59e581f09e82fa85d998;p=platform%2Fupstream%2Fgstreamer.git 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: --- diff --git a/subprojects/gst-plugins-bad/gst-libs/gst/va/gstvadisplay.c b/subprojects/gst-plugins-bad/gst-libs/gst/va/gstvadisplay.c index e3f2f1174d..1a32e3b9c6 100644 --- a/subprojects/gst-plugins-bad/gst-libs/gst/va/gstvadisplay.c +++ b/subprojects/gst-plugins-bad/gst-libs/gst/va/gstvadisplay.c @@ -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; } /**