---
title: Flush
description: "放弃当前所有的解码buffer，通常用于拖动进度条时使用。"
url: https://www.hikunpeng.com/document/detail/zh/kunpengboostkithistory/2400/armnative/kunpengcpsvideo_16_0078.html
sourcePath: /source/zh/kunpengboostkithistory/2400/armnative/kunpengcpsvideo_16_0078.html
indexId: d52b0d0726b292b6e60e321ea4146c5182424852225b5aa989324b22d74050f177
---
# Flush

#### 函数功能

放弃当前所有的解码buffer，通常用于拖动进度条时使用。


#### 约束说明

NA


#### 函数原型

DecoderRetCode Flush()


#### 参数说明

NA


#### 返回值说明

数据类型：DecoderRetCode

取值如下：

- VIDEO_DECODER_SUCCESS：重置解码缓存状态成功。
- VIDEO_DECODER_RESET_FAIL：重置解码缓存状态失败。
