mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 17:50:36 +00:00
cosmetics: fix warnings (drop unused variables).
This commit is contained in:
parent
2f127d6af4
commit
5cc357f88a
4 changed files with 3 additions and 4 deletions
|
@ -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
|
||||||
|
|
|
@ -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;
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue