di: decoder buffer mangement changed for multi decode
authorkele bai <kele.bai@amlogic.com>
Tue, 13 Feb 2018 07:44:13 +0000 (15:44 +0800)
committerkele bai <kele.bai@amlogic.com>
Tue, 13 Feb 2018 07:44:13 +0000 (15:44 +0800)
PD#152765: di: no put decoder buffer after unreg

Change-Id: Ifb68b53ab35ac94905b59b0400213814a5ee6ec9
Signed-off-by: kele bai <kele.bai@amlogic.com>
drivers/amlogic/media/deinterlace/deinterlace.c

index 10e27a6..d715453 100644 (file)
@@ -1849,14 +1849,9 @@ static int di_init_buf(int width, int height, unsigned char prog_flag)
        frame_count = 0;
        disp_frame_count = 0;
        cur_post_ready_di_buf = NULL;
-       for (i = 0; i < MAX_IN_BUF_NUM; i++) {
-               if (vframe_in[i]) {
-                       vf_put(vframe_in[i], VFM_NAME);
-                       vf_notify_provider(
-                               VFM_NAME, VFRAME_EVENT_RECEIVER_PUT, NULL);
-                       vframe_in[i] = NULL;
-               }
-       }
+       /* decoder'buffer had been releae no need put */
+       for (i = 0; i < MAX_IN_BUF_NUM; i++)
+               vframe_in[i] = NULL;
        memset(&di_pre_stru, 0, sizeof(di_pre_stru));
        if (nr10bit_support) {
                if (full_422_pack)