From 9c8c33857fc4ca6ee188613d081515ce28d9655b Mon Sep 17 00:00:00 2001 From: Gwenole Beauchesne Date: Tue, 13 Dec 2011 15:59:02 +0100 Subject: [PATCH] Fix warnings. --- gst-libs/gst/vaapi/gstvaapiutils_x11.c | 3 +-- gst-libs/gst/vaapi/gstvaapivideoconverter_glx.c | 1 - gst/vaapi/gstvaapidecode.c | 1 - gst/vaapi/gstvaapisink.c | 2 -- 4 files changed, 1 insertion(+), 6 deletions(-) diff --git a/gst-libs/gst/vaapi/gstvaapiutils_x11.c b/gst-libs/gst/vaapi/gstvaapiutils_x11.c index 7024b67..9c0852d 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 ee22b15..a4d3562 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 17c6320..81d08a9 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 1755498..c174924 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; } -- 2.7.4