[COMMON] media: mfc: remove bitrate list deletion during DRC
authorAyoung Sim <a.sim@samsung.com>
Wed, 22 May 2019 04:38:03 +0000 (13:38 +0900)
committerKim Gunho <gunho.kim@samsung.com>
Fri, 28 Jun 2019 14:45:50 +0000 (23:45 +0900)
Change-Id: I77981d4decbf08e685261850a62f9169c3eab5e2
Signed-off-by: Ayoung Sim <a.sim@samsung.com>
drivers/media/platform/exynos/mfc/mfc_isr.c

index 0d9682f6bb1a0cd1e833254f458c2031bc2a5141..95a90f798663e2dc05a47b1a458d299f03748686 100644 (file)
@@ -676,7 +676,6 @@ static void __mfc_handle_frame(struct mfc_ctx *ctx,
        if (dst_frame_status == MFC_REG_DEC_STATUS_DECODING_EMPTY) {
                if (ctx->state == MFCINST_RES_CHANGE_FLUSH) {
                        struct mfc_timestamp *temp_ts = NULL;
-                       struct mfc_bitrate *temp_bitrate = NULL;
 
                        mfc_debug(2, "[DRC] Last frame received after resolution change\n");
                        __mfc_handle_frame_all_extracted(ctx);
@@ -698,15 +697,6 @@ static void __mfc_handle_frame(struct mfc_ctx *ctx,
                        mfc_qos_reset_last_framerate(ctx);
                        mfc_qos_set_framerate(ctx, DEC_DEFAULT_FPS);
 
-                       /* empty the bitrate queue */
-                       while (!list_empty(&ctx->bitrate_list)) {
-                               temp_bitrate = list_entry((&ctx->bitrate_list)->next,
-                                               struct mfc_bitrate, list);
-                               list_del(&temp_bitrate->list);
-                       }
-                       ctx->bitrate_index = 0;
-                       ctx->bitrate_is_full = 0;
-
                        goto leave_handle_frame;
                } else {
                        __mfc_handle_frame_all_extracted(ctx);