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

List:       kde-commits
Subject:    KDE/kdemultimedia/phonon-xine
From:       Matthias Kretz <kretz () kde ! org>
Date:       2007-01-13 21:53:49
Message-ID: 1168725229.681021.7829.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 623045 by mkretz:

tickInterval == 0 means no ticks at all


 M  +11 -3     abstractmediaproducer.cpp  


--- trunk/KDE/kdemultimedia/phonon-xine/abstractmediaproducer.cpp #623044:623045
@@ -179,7 +179,9 @@
 				}
 				else
 				{
-					m_tickTimer->start();
+					if (m_tickInterval > 0) {
+						m_tickTimer->start();
+					}
 					setState( Phonon::PlayingState );
 					QTimer::singleShot( 20, this, SLOT( getStartTime() ) );
 				}
@@ -380,7 +382,11 @@
 {
 	//kDebug( 610 ) << k_funcinfo << endl;
 	m_tickInterval = newTickInterval;
-	m_tickTimer->setInterval( newTickInterval );
+	if (m_tickInterval == 0) {
+		m_tickTimer->stop();
+	} else {
+		m_tickTimer->setInterval( newTickInterval );
+	}
 }
 
 QStringList AbstractMediaProducer::availableAudioStreams() const
@@ -464,7 +470,9 @@
 		m_currentTimeOverride = -1;
 	}
 	setState( Phonon::PlayingState );
-	m_tickTimer->start();
+	if (m_tickInterval > 0) {
+		m_tickTimer->start();
+	}
 }
 
 void AbstractMediaProducer::pause()
[prev in list] [next in list] [prev in thread] [next in thread] 

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