- Fix build with gcc 4.2

PR:		117002
Submitted by:	Dmitry Marakasov <amdmi3@amdmi3.ru> (maintainer)
This commit is contained in:
Martin Wilke 2007-10-09 11:54:05 +00:00
parent cac2c4eca7
commit c004bf7bab
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=201163
2 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,11 @@
--- src/JackPlaybackCore.cxx.orig Fri Oct 5 01:19:48 2007
+++ src/JackPlaybackCore.cxx Fri Oct 5 01:20:24 2007
@@ -291,7 +291,7 @@
* 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();

View File

@ -0,0 +1,11 @@
--- src/PortAudioPlaybackCore.cxx.orig Fri Oct 5 01:19:48 2007
+++ src/PortAudioPlaybackCore.cxx Fri Oct 5 01:20:55 2007
@@ -187,7 +187,7 @@
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 );