[vlc-commits] demux: ts: fix test & clear

Francois Cartegnie git at videolan.org
Thu Feb 8 18:28:36 CET 2018


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu Feb  8 18:27:03 2018 +0100| [004578e6aca7ae3952a7d33f5405e3c998b3cdc8] | committer: Francois Cartegnie

demux: ts: fix test & clear

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=004578e6aca7ae3952a7d33f5405e3c998b3cdc8
---

 modules/demux/mpeg/ts.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/demux/mpeg/ts.c b/modules/demux/mpeg/ts.c
index 5dd741ae33..eb27d12f04 100644
--- a/modules/demux/mpeg/ts.c
+++ b/modules/demux/mpeg/ts.c
@@ -1135,7 +1135,7 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
     {
         unsigned *restrict flags = va_arg(args, unsigned *);
         *flags &= p_sys->updates;
-        p_sys->updates = ~*flags;
+        p_sys->updates &= ~*flags;
         return VLC_SUCCESS;
     }
 



More information about the vlc-commits mailing list