mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-26 10:10:32 +00:00
vaapidecode: clean-ups (indentation, drop unused variables)
This commit is contained in:
parent
2f8c1159e3
commit
7e19e6a00a
1 changed files with 2 additions and 4 deletions
|
@ -513,7 +513,6 @@ static GstFlowReturn
|
|||
gst_vaapidecode_finish (GstVideoDecoder * vdec)
|
||||
{
|
||||
GstVaapiDecode *const decode = GST_VAAPIDECODE (vdec);
|
||||
GstFlowReturn ret = GST_FLOW_OK;
|
||||
|
||||
if (!decode->decoder)
|
||||
return GST_FLOW_OK;
|
||||
|
@ -605,8 +604,8 @@ gst_vaapidecode_create (GstVaapiDecode * decode, GstCaps * caps)
|
|||
alignment = GST_VAAPI_STREAM_ALIGN_H264_NALU;
|
||||
else
|
||||
alignment = GST_VAAPI_STREAM_ALIGN_H264_NONE;
|
||||
gst_vaapi_decoder_h264_set_alignment (GST_VAAPI_DECODER_H264 (decode->
|
||||
decoder), alignment);
|
||||
gst_vaapi_decoder_h264_set_alignment (GST_VAAPI_DECODER_H264
|
||||
(decode->decoder), alignment);
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
@ -662,7 +661,6 @@ gst_vaapidecode_reset_full (GstVaapiDecode * decode, GstCaps * caps,
|
|||
|
||||
/* Reset timers if hard reset was requested (e.g. seek) */
|
||||
if (hard) {
|
||||
GstVideoDecoder *const vdec = GST_VIDEO_DECODER (decode);
|
||||
GstVideoCodecFrame *out_frame = NULL;
|
||||
|
||||
gst_vaapi_decoder_flush (decode->decoder);
|
||||
|
|
Loading…
Reference in a new issue