diff options
author | miwi <miwi@FreeBSD.org> | 2007-10-09 19:54:05 +0800 |
---|---|---|
committer | miwi <miwi@FreeBSD.org> | 2007-10-09 19:54:05 +0800 |
commit | 2093c5f0fd215047c81e3eec557e4db5f28ba51e (patch) | |
tree | f3cfe9747586f3012e4c2d857a918448bee9f1fb /multimedia/openmovieeditor | |
parent | 20dd97c5dd0e3837f0c61ba1a56eaed61cc6553f (diff) | |
download | freebsd-ports-gnome-2093c5f0fd215047c81e3eec557e4db5f28ba51e.tar.gz freebsd-ports-gnome-2093c5f0fd215047c81e3eec557e4db5f28ba51e.tar.zst freebsd-ports-gnome-2093c5f0fd215047c81e3eec557e4db5f28ba51e.zip |
- Fix build with gcc 4.2
PR: 117002
Submitted by: Dmitry Marakasov <amdmi3@amdmi3.ru> (maintainer)
Diffstat (limited to 'multimedia/openmovieeditor')
-rw-r--r-- | multimedia/openmovieeditor/files/patch-src-JackPlaybackCore.cxx | 11 | ||||
-rw-r--r-- | multimedia/openmovieeditor/files/patch-src-PortAudioPlaybackCore.cxx | 11 |
2 files changed, 22 insertions, 0 deletions
diff --git a/multimedia/openmovieeditor/files/patch-src-JackPlaybackCore.cxx b/multimedia/openmovieeditor/files/patch-src-JackPlaybackCore.cxx new file mode 100644 index 000000000000..62d581c7824c --- /dev/null +++ b/multimedia/openmovieeditor/files/patch-src-JackPlaybackCore.cxx @@ -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(); + diff --git a/multimedia/openmovieeditor/files/patch-src-PortAudioPlaybackCore.cxx b/multimedia/openmovieeditor/files/patch-src-PortAudioPlaybackCore.cxx new file mode 100644 index 000000000000..d8f2c1b92c00 --- /dev/null +++ b/multimedia/openmovieeditor/files/patch-src-PortAudioPlaybackCore.cxx @@ -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 ); |