cosmetics: fix warnings (drop unused variables).
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Tue, 7 Feb 2012 09:05:53 +0000 (10:05 +0100)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Tue, 7 Feb 2012 09:06:15 +0000 (10:06 +0100)
gst-libs/gst/vaapi/gstvaapicodec_objects.c
gst-libs/gst/vaapi/gstvaapidecoder_mpeg2.c
gst-libs/gst/vaapi/gstvaapidecoder_mpeg4.c
gst-libs/gst/vaapi/gstvaapidisplay.c

index 7b5958d..223069a 100644 (file)
@@ -215,7 +215,7 @@ gst_vaapi_bitplane_create(
                                args->param_size,
                                args->param,
                                &bitplane->data_id,
-                               &bitplane->data);
+                               (void **)&bitplane->data);
 }
 
 static void
index a702b96..7b57c12 100644 (file)
@@ -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;
 
index 5ef2d22..e2cbc4e 100644 (file)
@@ -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;
index 1a28694..cd7c0e2 100644 (file)
@@ -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;