[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#449548: FTBFS on mips



Package: openmovieeditor
Version: 0.0.20061221-4
Tags: patch

openmovieeditor fails to build on at least mips, this seems to be a
generic issue triggered by new g++ versions. abs() expects a double
argument, but is used with a 64 bit integer. The appended patch
fixes this.


Thiemo


--- openmovieeditor-0.0.20061221/src/PortAudioPlaybackCore.cxx.old	2007-11-06 03:05:05.000000000 +0000
+++ openmovieeditor-0.0.20061221/src/PortAudioPlaybackCore.cxx	2007-11-06 03:24:08.000000000 +0000
@@ -187,7 +187,7 @@ void PortAudioPlaybackCore::flipFrame()
 	m_lastFrame++;
 	pthread_mutex_lock( &condition_mutex );
 	int64_t diff = m_lastFrame - m_currentFrame;
-	if ( abs( diff ) > VIDEO_DRIFT_LIMIT ) {
+	if ( ::llabs( diff ) > VIDEO_DRIFT_LIMIT ) {
 		if ( diff > 0 ) {
 			while( ( m_lastFrame - m_currentFrame ) > VIDEO_DRIFT_LIMIT && Pa_StreamActive( g_stream ) ) {
 				pthread_cond_wait( &condition_cond, &condition_mutex );
--- openmovieeditor-0.0.20061221/src/JackPlaybackCore.cxx.old	2007-11-06 03:23:00.000000000 +0000
+++ openmovieeditor-0.0.20061221/src/JackPlaybackCore.cxx	2007-11-06 03:23:36.000000000 +0000
@@ -291,7 +291,7 @@ void JackPlaybackCore::play()
 		 * possibly resulting in a backwards seek.
 		 */
 		int spin = 1000000;
-		while (abs(jack_poll_frame()-m_currentFrame) > 2 && spin-- > 0 );
+		while (::llabs(jack_poll_frame()-m_currentFrame) > 2 && spin-- > 0 );
 	}
 	if (g_use_jack_transport) jack_play();
 




Reply to: