From 2492afa86c0795b1902ab5ead375064bcec32c93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Manuel=20J=C3=A1quez=20Leal?= Date: Mon, 1 Jun 2015 18:39:18 +0200 Subject: [PATCH] vaapidecode: remove unneeded casting And a code-style fix --- gst/vaapi/gstvaapidecode.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/gst/vaapi/gstvaapidecode.c b/gst/vaapi/gstvaapidecode.c index ac4208e14a..2087a2fa23 100644 --- a/gst/vaapi/gstvaapidecode.c +++ b/gst/vaapi/gstvaapidecode.c @@ -214,8 +214,7 @@ gst_vaapidecode_update_src_caps (GstVaapiDecode * decode) } state = gst_video_decoder_set_output_state (vdec, format, - ref_state->info.width, ref_state->info.height, - (GstVideoCodecState *) ref_state); + ref_state->info.width, ref_state->info.height, ref_state); if (!state || state->info.width == 0 || state->info.height == 0) return FALSE; @@ -670,7 +669,7 @@ gst_vaapidecode_purge (GstVaapiDecode * decode) GstVideoCodecFrame *frame = NULL; status = - gst_vaapi_decoder_get_frame_with_timeout (decode->decoder, &frame, 0); + gst_vaapi_decoder_get_frame_with_timeout (decode->decoder, &frame, 0); if (frame) { gst_video_decoder_release_frame (GST_VIDEO_DECODER (decode), frame); gst_video_codec_frame_unref (frame);