[vlc-commits] dcp: Fix assignment instead of comparison

Hugo Beauzée-Luyssen git at videolan.org
Fri Dec 22 11:06:26 CET 2017


vlc/vlc-3.0 | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Fri Dec 22 10:40:51 2017 +0100| [8ac41cb18078bb57bf846a9982600b268c2dc71c] | committer: Hugo Beauzée-Luyssen

dcp: Fix assignment instead of comparison

CID #1463255 #1463251

(cherry picked from commit a15a0a64200cc6ab8cbc61caabac126707f3f247)
Signed-off-by: Hugo Beauzée-Luyssen <hugo at beauzee.fr>

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

 modules/access/dcp/dcpparser.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/modules/access/dcp/dcpparser.cpp b/modules/access/dcp/dcpparser.cpp
index 9809ff9d78..548b0a3481 100755
--- a/modules/access/dcp/dcpparser.cpp
+++ b/modules/access/dcp/dcpparser.cpp
@@ -1080,7 +1080,7 @@ int PKL::ParseSigner(string p_node, int p_type)
 
     while( ( type = XmlFile::ReadNextNode( this->p_demux, this->p_xmlReader, node ) ) > 0 ) {
         /* TODO not implemented. Just parse until end of Signer node */
-            if ((node == p_node) && (type = XML_READER_ENDELEM))
+            if ((node == p_node) && (type == XML_READER_ENDELEM))
                 return 0;
     }
 
@@ -1100,7 +1100,7 @@ int PKL::ParseSignature(string p_node, int p_type)
 
     while( ( type = XmlFile::ReadNextNode( this->p_demux, this->p_xmlReader, node ) ) > 0 ) {
         /* TODO not implemented. Just parse until end of Signature node */
-            if ((node == p_node) && (type = XML_READER_ENDELEM))
+            if ((node == p_node) && (type == XML_READER_ENDELEM))
                 return 0;
     }
     msg_Err(this->p_demux, "Parse of Signature finished bad");
@@ -1506,7 +1506,7 @@ int CPL::DummyParse(string p_node, int p_type)
 
     while( ( type = XmlFile::ReadNextNode( this->p_demux, this->p_xmlReader, node ) ) > 0 ) {
         /* TODO not implemented. Just pase until end of input node */
-        if ((node == p_node) && (type = XML_READER_ENDELEM))
+        if ((node == p_node) && (type == XML_READER_ENDELEM))
             return 0;
     }
 



More information about the vlc-commits mailing list