mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-27 02:30:35 +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)
|
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);
|
||||||
|
|
Loading…
Reference in a new issue