diff options
author | Alexis Ballier <aballier@gentoo.org> | 2017-01-18 11:48:34 +0100 |
---|---|---|
committer | Alexis Ballier <aballier@gentoo.org> | 2017-01-18 11:48:41 +0100 |
commit | a6dc675b02f18cc28959b32841f2f3bde6ebc489 (patch) | |
tree | 523a653a548e32a8b7268cba13457d5b8cf7cbb6 /media-video/mplayer/files | |
parent | games-emulation/pcsx2: fixed compilation with gcc 5 (diff) | |
download | gentoo-a6dc675b02f18cc28959b32841f2f3bde6ebc489.tar.gz gentoo-a6dc675b02f18cc28959b32841f2f3bde6ebc489.tar.bz2 gentoo-a6dc675b02f18cc28959b32841f2f3bde6ebc489.zip |
media-video/mplayer: remove old
Package-Manager: Portage-2.3.3, Repoman-2.3.1
Diffstat (limited to 'media-video/mplayer/files')
-rw-r--r-- | media-video/mplayer/files/mplayer-1.2_pre20150214-pulseaudio-6.0.patch | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/media-video/mplayer/files/mplayer-1.2_pre20150214-pulseaudio-6.0.patch b/media-video/mplayer/files/mplayer-1.2_pre20150214-pulseaudio-6.0.patch deleted file mode 100644 index 578d6fa52277..000000000000 --- a/media-video/mplayer/files/mplayer-1.2_pre20150214-pulseaudio-6.0.patch +++ /dev/null @@ -1,33 +0,0 @@ -diff -Naur mplayer-1.2_pre20150214/libao2/ao_pulse.c mplayer-1.2_pre20150214_2/libao2/ao_pulse.c ---- mplayer-1.2_pre20150214/libao2/ao_pulse.c 2015-02-15 06:30:21.000000000 +1000 -+++ mplayer-1.2_pre20150214_2/libao2/ao_pulse.c 2015-05-17 14:07:07.615640169 +1000 -@@ -53,6 +53,8 @@ - - static int broken_pause; - -+static size_t bytes_per_sample; -+ - LIBAO_EXTERN(pulse) - - #define GENERIC_ERR_MSG(ctx, str) \ -@@ -201,6 +203,8 @@ - } - - pa_channel_map_init_auto(&map, ss.channels, PA_CHANNEL_MAP_ALSA); -+ bytes_per_sample = af_fmt2bits(ao_data.format) / 8; -+ bytes_per_sample *= ao_data.channels; - ao_data.bps = pa_bytes_per_second(&ss); - - if (!(mainloop = pa_threaded_mainloop_new())) { -@@ -297,6 +301,11 @@ - - /** Play the specified data to the pulseaudio server */ - static int play(void* data, int len, int flags) { -+ //Align length to frame size -+ len=len - (len % bytes_per_sample); -+ if (len==0) { -+ return 0; -+ } - pa_threaded_mainloop_lock(mainloop); - if (pa_stream_write(stream, data, len, NULL, 0, PA_SEEK_RELATIVE) < 0) { - GENERIC_ERR_MSG(context, "pa_stream_write() failed"); |