diff --git a/gst-libs/gst/vaapi/gstvaapiutils_x11.c b/gst-libs/gst/vaapi/gstvaapiutils_x11.c index 7024b670f7..9c0852dfc5 100644 --- a/gst-libs/gst/vaapi/gstvaapiutils_x11.c +++ b/gst-libs/gst/vaapi/gstvaapiutils_x11.c @@ -79,12 +79,11 @@ x11_create_window(Display *dpy, guint w, guint h, Visual *vis, Colormap cmap) XSetWindowAttributes xswa; unsigned long xswa_mask; XWindowAttributes wattr; - unsigned long black_pixel, white_pixel; + unsigned long black_pixel; screen = DefaultScreen(dpy); rootwin = RootWindow(dpy, screen); black_pixel = BlackPixel(dpy, screen); - white_pixel = WhitePixel(dpy, screen); if (!vis) vis = DefaultVisual(dpy, screen); diff --git a/gst-libs/gst/vaapi/gstvaapivideoconverter_glx.c b/gst-libs/gst/vaapi/gstvaapivideoconverter_glx.c index ee22b15ddd..a4d3562800 100644 --- a/gst-libs/gst/vaapi/gstvaapivideoconverter_glx.c +++ b/gst-libs/gst/vaapi/gstvaapivideoconverter_glx.c @@ -56,7 +56,6 @@ static void gst_vaapi_video_converter_glx_class_init(GstVaapiVideoConverterGLXClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); - GParamSpec *pspec; g_type_class_add_private (klass, sizeof (GstVaapiVideoConverterGLXPrivate)); object_class->dispose = gst_vaapi_video_converter_glx_dispose; diff --git a/gst/vaapi/gstvaapidecode.c b/gst/vaapi/gstvaapidecode.c index 17c6320574..81d08a9e21 100644 --- a/gst/vaapi/gstvaapidecode.c +++ b/gst/vaapi/gstvaapidecode.c @@ -517,7 +517,6 @@ gst_vaapidecode_class_init(GstVaapiDecodeClass *klass) static gboolean gst_vaapidecode_ensure_allowed_caps(GstVaapiDecode *decode) { - GstVaapiDisplay *display; GstCaps *decode_caps; guint i, n_decode_caps; diff --git a/gst/vaapi/gstvaapisink.c b/gst/vaapi/gstvaapisink.c index 175549894f..c1749248d8 100644 --- a/gst/vaapi/gstvaapisink.c +++ b/gst/vaapi/gstvaapisink.c @@ -404,8 +404,6 @@ gst_vaapisink_ensure_window_xid(GstVaapiSink *sink, guintptr window_id) static gboolean gst_vaapisink_start(GstBaseSink *base_sink) { - GstVaapiSink * const sink = GST_VAAPISINK(base_sink); - return TRUE; }