summaryrefslogtreecommitdiff
path: root/package/mpd/patches/patch-src_output_alsa_plugin_c
blob: 8e0e6bb80e35369a99d95ecd4a0e768b804c5cd3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- mpd-0.16.2.orig/src/output/alsa_plugin.c	2011-03-19 01:41:53.000000000 +0100
+++ mpd-0.16.2/src/output/alsa_plugin.c	2011-05-14 13:44:14.000000000 +0200
@@ -646,8 +646,9 @@ alsa_play(void *data, const void *chunk,
 	while (true) {
 		snd_pcm_sframes_t ret = ad->writei(ad->pcm, chunk, size);
 		if (ret > 0) {
-			ad->period_position = (ad->period_position + ret)
-				% ad->period_frames;
+			// SIGFPE!
+			//ad->period_position = (ad->period_position + ret)
+			//	% ad->period_frames;
 			return ret * ad->frame_size;
 		}