mavs: fixed avs file playback stuck issue [1/1]
authorPeng Yixin <yixin.peng@amlogic.com>
Fri, 30 Oct 2020 10:11:52 +0000 (18:11 +0800)
committerYixin Peng <yixin.peng@amlogic.com>
Tue, 3 Nov 2020 03:17:43 +0000 (20:17 -0700)
PD#SWPL-25580

Problem:
vf was not init again at reset,
avs file playback stuck.

Solution:
Reinitializing vf buffer solves this problem.

Verify:
AB311

Change-Id: I3ea47598542dd035616937624cff9034f48317b0
Signed-off-by: Peng Yixin <yixin.peng@amlogic.com>
drivers/frame_provider/decoder/avs/avs.c

index 2b6cdeb550d43f8732d7f7f2f133cd1a749150dd..6314f9d22d63ed4e1bffb6f0a81a1e75c8c8a70b 100644 (file)
@@ -1191,6 +1191,7 @@ static void vavs_local_init(bool is_reset)
 {
        int i;
 
+       is_reset = 0;
        vavs_ratio = vavs_amstream_dec_info.ratio;
 
        avi_flag = (unsigned long) vavs_amstream_dec_info.param;