vaapidecode: clean-ups (indentation, drop unused variables)

This commit is contained in:
Sreerenj Balachandran 2015-03-06 14:31:21 +02:00
parent 2f8c1159e3
commit 7e19e6a00a

View file

@ -513,7 +513,6 @@ static GstFlowReturn
gst_vaapidecode_finish (GstVideoDecoder * vdec) gst_vaapidecode_finish (GstVideoDecoder * vdec)
{ {
GstVaapiDecode *const decode = GST_VAAPIDECODE (vdec); GstVaapiDecode *const decode = GST_VAAPIDECODE (vdec);
GstFlowReturn ret = GST_FLOW_OK;
if (!decode->decoder) if (!decode->decoder)
return GST_FLOW_OK; return GST_FLOW_OK;
@ -605,8 +604,8 @@ gst_vaapidecode_create (GstVaapiDecode * decode, GstCaps * caps)
alignment = GST_VAAPI_STREAM_ALIGN_H264_NALU; alignment = GST_VAAPI_STREAM_ALIGN_H264_NALU;
else else
alignment = GST_VAAPI_STREAM_ALIGN_H264_NONE; alignment = GST_VAAPI_STREAM_ALIGN_H264_NONE;
gst_vaapi_decoder_h264_set_alignment (GST_VAAPI_DECODER_H264 (decode-> gst_vaapi_decoder_h264_set_alignment (GST_VAAPI_DECODER_H264
decoder), alignment); (decode->decoder), alignment);
} }
} }
break; break;
@ -662,7 +661,6 @@ gst_vaapidecode_reset_full (GstVaapiDecode * decode, GstCaps * caps,
/* Reset timers if hard reset was requested (e.g. seek) */ /* Reset timers if hard reset was requested (e.g. seek) */
if (hard) { if (hard) {
GstVideoDecoder *const vdec = GST_VIDEO_DECODER (decode);
GstVideoCodecFrame *out_frame = NULL; GstVideoCodecFrame *out_frame = NULL;
gst_vaapi_decoder_flush (decode->decoder); gst_vaapi_decoder_flush (decode->decoder);