amstream: fixed dtv and esplayer play fail. [1/1]
authorgan.zhang <gan.zhang@amlogic.com>
Mon, 19 Oct 2020 11:52:06 +0000 (19:52 +0800)
committerNanxin Qin <nanxin.qin@amlogic.com>
Wed, 21 Oct 2020 02:46:42 +0000 (19:46 -0700)
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 <gan.zhang@amlogic.com>
drivers/stream_input/amports/amstream.c

index 4e8eebf5ffb460a1ee5aa7eb8b4264309787da23..6b81f1aeffcfe01e525f13d8f304693bae0d3f68 100644 (file)
@@ -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;