From 5cc357f88abb732341e35f1dda236b4fd824c6f5 Mon Sep 17 00:00:00 2001 From: Gwenole Beauchesne Date: Tue, 7 Feb 2012 10:05:53 +0100 Subject: [PATCH] cosmetics: fix warnings (drop unused variables). --- gst-libs/gst/vaapi/gstvaapicodec_objects.c | 2 +- gst-libs/gst/vaapi/gstvaapidecoder_mpeg2.c | 2 +- gst-libs/gst/vaapi/gstvaapidecoder_mpeg4.c | 1 - gst-libs/gst/vaapi/gstvaapidisplay.c | 2 +- 4 files changed, 3 insertions(+), 4 deletions(-) diff --git a/gst-libs/gst/vaapi/gstvaapicodec_objects.c b/gst-libs/gst/vaapi/gstvaapicodec_objects.c index 7b5958d..223069a 100644 --- a/gst-libs/gst/vaapi/gstvaapicodec_objects.c +++ b/gst-libs/gst/vaapi/gstvaapicodec_objects.c @@ -215,7 +215,7 @@ gst_vaapi_bitplane_create( args->param_size, args->param, &bitplane->data_id, - &bitplane->data); + (void **)&bitplane->data); } static void diff --git a/gst-libs/gst/vaapi/gstvaapidecoder_mpeg2.c b/gst-libs/gst/vaapi/gstvaapidecoder_mpeg2.c index a702b96..7b57c12 100644 --- a/gst-libs/gst/vaapi/gstvaapidecoder_mpeg2.c +++ b/gst-libs/gst/vaapi/gstvaapidecoder_mpeg2.c @@ -685,7 +685,7 @@ decode_buffer(GstVaapiDecoderMpeg2 *decoder, GstBuffer *buffer) gst_adapter_flush(priv->adapter, ofs); size -= ofs; - status = gst_vaapi_decoder_check_status(decoder); + status = gst_vaapi_decoder_check_status(GST_VAAPI_DECODER(decoder)); if (status != GST_VAAPI_DECODER_STATUS_SUCCESS) break; diff --git a/gst-libs/gst/vaapi/gstvaapidecoder_mpeg4.c b/gst-libs/gst/vaapi/gstvaapidecoder_mpeg4.c index 5ef2d22..e2cbc4e 100644 --- a/gst-libs/gst/vaapi/gstvaapidecoder_mpeg4.c +++ b/gst-libs/gst/vaapi/gstvaapidecoder_mpeg4.c @@ -909,7 +909,6 @@ decode_buffer(GstVaapiDecoderMpeg4 *decoder, GstBuffer *buffer) static GstVaapiDecoderStatus decode_codec_data(GstVaapiDecoderMpeg4 *decoder, GstBuffer *buffer) { - GstVaapiDecoderMpeg4Private * const priv = decoder->priv; GstVaapiDecoderStatus status; guchar *buf, *_buf; guint pos, buf_size, _buf_size; diff --git a/gst-libs/gst/vaapi/gstvaapidisplay.c b/gst-libs/gst/vaapi/gstvaapidisplay.c index 1a28694..cd7c0e2 100644 --- a/gst-libs/gst/vaapi/gstvaapidisplay.c +++ b/gst-libs/gst/vaapi/gstvaapidisplay.c @@ -497,7 +497,7 @@ gst_vaapi_display_create(GstVaapiDisplay *display) flags = g_new(guint, n); if (!formats || !flags) goto end; - status = vaQuerySubpictureFormats(priv->display, formats, flags, &n); + status = vaQuerySubpictureFormats(priv->display, formats, flags, (guint *)&n); if (!vaapi_check_status(status, "vaQuerySubpictureFormats()")) goto end; -- 2.7.4