From: gan.zhang Date: Mon, 19 Oct 2020 11:52:06 +0000 (+0800) Subject: amstream: fixed dtv and esplayer play fail. [1/1] X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b8c59378893659e27068204e2d633d2dbadeaef6;p=GitHub%2FLineageOS%2FG12%2Fandroid_hardware_amlogic_kernel-modules_media.git amstream: fixed dtv and esplayer play fail. [1/1] PD#SWPL-35372 PD#SWPL-35326 Problem: The port is not released due to an error in the judgment variable. Solution: clear ports status when inst exit. Verify: AB311 Change-Id: I837ee6b2719a1dfc232f96ccb296c02d0dad2c43 Signed-off-by: gan.zhang --- diff --git a/drivers/stream_input/amports/amstream.c b/drivers/stream_input/amports/amstream.c index 4e8eebf..6b81f1a 100644 --- a/drivers/stream_input/amports/amstream.c +++ b/drivers/stream_input/amports/amstream.c @@ -1094,7 +1094,7 @@ static int amstream_port_release(struct port_priv_s *priv) port->pcr_inited = 0; if (!is_mult_inc(port->type) || - (is_mult_inc(port->flag) && + (is_mult_inc(port->type) && !is_support_no_parser())) port->flag = 0; @@ -1801,7 +1801,7 @@ static int amstream_release(struct inode *inode, struct file *file) } if (!is_mult_inc(port->type) || - (is_mult_inc(port->flag) && + (is_mult_inc(port->type) && !is_support_no_parser())) port->flag = 0;