cosmetics: fix warnings (drop unused variables).

This commit is contained in:
Gwenole Beauchesne 2012-02-07 10:05:53 +01:00
parent 2f127d6af4
commit 5cc357f88a
4 changed files with 3 additions and 4 deletions

View file

@ -215,7 +215,7 @@ gst_vaapi_bitplane_create(
args->param_size, args->param_size,
args->param, args->param,
&bitplane->data_id, &bitplane->data_id,
&bitplane->data); (void **)&bitplane->data);
} }
static void static void

View file

@ -685,7 +685,7 @@ decode_buffer(GstVaapiDecoderMpeg2 *decoder, GstBuffer *buffer)
gst_adapter_flush(priv->adapter, ofs); gst_adapter_flush(priv->adapter, ofs);
size -= 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) if (status != GST_VAAPI_DECODER_STATUS_SUCCESS)
break; break;

View file

@ -909,7 +909,6 @@ decode_buffer(GstVaapiDecoderMpeg4 *decoder, GstBuffer *buffer)
static GstVaapiDecoderStatus static GstVaapiDecoderStatus
decode_codec_data(GstVaapiDecoderMpeg4 *decoder, GstBuffer *buffer) decode_codec_data(GstVaapiDecoderMpeg4 *decoder, GstBuffer *buffer)
{ {
GstVaapiDecoderMpeg4Private * const priv = decoder->priv;
GstVaapiDecoderStatus status; GstVaapiDecoderStatus status;
guchar *buf, *_buf; guchar *buf, *_buf;
guint pos, buf_size, _buf_size; guint pos, buf_size, _buf_size;

View file

@ -497,7 +497,7 @@ gst_vaapi_display_create(GstVaapiDisplay *display)
flags = g_new(guint, n); flags = g_new(guint, n);
if (!formats || !flags) if (!formats || !flags)
goto end; goto end;
status = vaQuerySubpictureFormats(priv->display, formats, flags, &n); status = vaQuerySubpictureFormats(priv->display, formats, flags, (guint *)&n);
if (!vaapi_check_status(status, "vaQuerySubpictureFormats()")) if (!vaapi_check_status(status, "vaQuerySubpictureFormats()"))
goto end; goto end;