summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Jezak <josejx@gentoo.org>2006-08-11 02:24:10 +0000
committerJoseph Jezak <josejx@gentoo.org>2006-08-11 02:24:10 +0000
commite0e6b87988ebc6bb32695a549df1689984acdc8b (patch)
tree5f0591c9d6c5eb87036aa6491709dc5f38ff0702 /media-video/kino/files
parentVersion bump #143512 by Chris Carlin. (diff)
downloadhistorical-e0e6b87988ebc6bb32695a549df1689984acdc8b.tar.gz
historical-e0e6b87988ebc6bb32695a549df1689984acdc8b.tar.bz2
historical-e0e6b87988ebc6bb32695a549df1689984acdc8b.zip
Added patch to fix compile issue, bug #132870.
Package-Manager: portage-2.1.1_pre4-r4
Diffstat (limited to 'media-video/kino/files')
-rw-r--r--media-video/kino/files/kino-0.9.0-compile-fix.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/media-video/kino/files/kino-0.9.0-compile-fix.patch b/media-video/kino/files/kino-0.9.0-compile-fix.patch
new file mode 100644
index 000000000000..d7ead7246365
--- /dev/null
+++ b/media-video/kino/files/kino-0.9.0-compile-fix.patch
@@ -0,0 +1,33 @@
+diff -Naur kino-0.9.0.bak/src/frame.h kino-0.9.0/src/frame.h
+--- kino-0.9.0.bak/src/frame.h 2006-08-09 19:44:42.000000000 -0400
++++ kino-0.9.0/src/frame.h 2006-08-09 20:29:05.000000000 -0400
+@@ -313,7 +313,7 @@
+ }
+ void Resample( input_t *input, double input_rate, int channels, int samples )
+ {
+- src_short_to_float_array( input, input_buffer, samples * channels );
++ src_short_to_float_array((const short int*) input, input_buffer, samples * channels );
+
+ // Setup resampler
+ data.input_frames = samples;
+@@ -513,7 +513,7 @@
+ {
+ int out_samples = src_callback_read( m_state, rate / m_rate, samples, m_internalOutput );
+ // cerr << "AsyncAudioResample::Process rate " << rate << " req samples " << samples << " out samples " << out_samples << endl;
+- src_float_to_short_array( m_internalOutput, m_output, out_samples * m_channels );
++ src_float_to_short_array( m_internalOutput, (short int*) m_output, out_samples * m_channels );
+ return out_samples;
+ }
+
+diff -Naur kino-0.9.0.bak/src/page_export_audio.cc kino-0.9.0/src/page_export_audio.cc
+--- kino-0.9.0.bak/src/page_export_audio.cc 2006-08-09 19:44:43.000000000 -0400
++++ kino-0.9.0/src/page_export_audio.cc 2006-08-09 20:11:25.000000000 -0400
+@@ -215,7 +215,7 @@
+
+ int requestedSamples = frame.CalculateNumberSamples( resampleRate, j );
+ int nsamples = resampler->Process( adjustedRate, requestedSamples );
+- if ( nsamples > 0 && !outputPipe->OutputAudioFrame( resampler->GetOutput(), nsamples * channels * sizeof(int16_t) ) )
++ if ( nsamples > 0 && !outputPipe->OutputAudioFrame( (short int *)resampler->GetOutput(), nsamples * channels * sizeof(int16_t) ) )
+ {
+ modal_message( _( "Error during audio export - aborting." ) );
+ status = EXPORT_RESULT_FAILURE;