vaapidecode: remove unneeded casting

And a code-style fix
This commit is contained in:
Víctor Manuel Jáquez Leal 2015-06-01 18:39:18 +02:00
parent 26cedfa9fa
commit 2492afa86c

View file

@ -214,8 +214,7 @@ gst_vaapidecode_update_src_caps (GstVaapiDecode * decode)
} }
state = gst_video_decoder_set_output_state (vdec, format, state = gst_video_decoder_set_output_state (vdec, format,
ref_state->info.width, ref_state->info.height, ref_state->info.width, ref_state->info.height, ref_state);
(GstVideoCodecState *) ref_state);
if (!state || state->info.width == 0 || state->info.height == 0) if (!state || state->info.width == 0 || state->info.height == 0)
return FALSE; return FALSE;