[vlmc-devel] Fix infinite recursion.

Hugo Beauzée-Luyssen git at videolan.org
Sun Feb 9 19:44:25 CET 2014


vlmc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Sun Feb  9 20:03:53 2014 +0200| [ad245bcc853f6430b323fd8bdfb1387caf8e4b80] | committer: Hugo Beauzée-Luyssen

Fix infinite recursion.

Global replacement without checking is wrong. WRONG!

> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=ad245bcc853f6430b323fd8bdfb1387caf8e4b80
---

 src/Tools/VlmcDebug.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Tools/VlmcDebug.h b/src/Tools/VlmcDebug.h
index 4ad8a07..c93915f 100644
--- a/src/Tools/VlmcDebug.h
+++ b/src/Tools/VlmcDebug.h
@@ -34,7 +34,7 @@ inline QDebug vlmcDebug()
 
 inline QDebug vlmcWarning()
 {
-    return (vlmcWarning().nospace() << '[' << qPrintable(QTime::currentTime().toString("hh:mm:ss.zzz")) << "] T #" << QThread::currentThreadId() << " W:").space();
+    return (qWarning().nospace() << '[' << qPrintable(QTime::currentTime().toString("hh:mm:ss.zzz")) << "] T #" << QThread::currentThreadId() << " W:").space();
 }
 
 inline QDebug vlmcCritical()



More information about the Vlmc-devel mailing list