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

Francois Cartegnie git at videolan.org
Thu Feb 8 18:32:23 CET 2018


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu Feb  8 18:31:53 2018 +0100| [8a8fef92a52b389461b5c65298ab882b22e139b6] | committer: Francois Cartegnie

demux: ps: fix test & clear

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

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

diff --git a/modules/demux/mpeg/ps.c b/modules/demux/mpeg/ps.c
index 6a18e43bd6..d7134688f7 100644
--- a/modules/demux/mpeg/ps.c
+++ b/modules/demux/mpeg/ps.c
@@ -787,7 +787,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