[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdebase/runtime/phonon/xine
From:       Matthias Kretz <kretz () kde ! org>
Date:       2008-08-10 20:08:41
Message-ID: 1218398921.994409.10978.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 844873 by mkretz:

add debug check

 M  +2 -1      bytestream.cpp  
 M  +1 -1      bytestream.h  


--- trunk/KDE/kdebase/runtime/phonon/xine/bytestream.cpp #844872:844873
@@ -107,7 +107,7 @@
     connectToSource(mediaSource);
 
     // created in the main thread
-    //m_mainThread = pthread_self();
+    m_mainThread = pthread_self();
 }
 
 void ByteStream::pullBuffer(char *buf, int len)
@@ -334,6 +334,7 @@
 
 ByteStream::~ByteStream()
 {
+    Q_ASSERT(m_mainThread == pthread_self());
     PXINE_DEBUG;
 }
 
--- trunk/KDE/kdebase/runtime/phonon/xine/bytestream.h #844872:844873
@@ -103,7 +103,7 @@
         QWaitCondition m_seekWaitCondition;
         QQueue<QByteArray> m_buffers;
 
-        //pthread_t m_mainThread;
+        pthread_t m_mainThread;
         qint64 m_streamSize;
         qint64 m_currentPosition;
         size_t m_buffersize;
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic