View | Details | Raw Unified | Return to bug 220920 | Differences between
and this patch

Collapse All | Expand All

(-)Makefile (+1 lines)
Lines 3-8 Link Here
3
3
4
PORTNAME=	mpv
4
PORTNAME=	mpv
5
PORTVERSION=	0.26.0
5
PORTVERSION=	0.26.0
6
PORTREVISION=	1
6
DISTVERSIONPREFIX=	v
7
DISTVERSIONPREFIX=	v
7
PORTEPOCH=	1
8
PORTEPOCH=	1
8
CATEGORIES=	multimedia audio
9
CATEGORIES=	multimedia audio
(-)files/patch-audio_out_ao__oss.c (+14 lines)
Line 0 Link Here
1
--- audio/out/ao_oss.c.orig	2017-07-22 06:22:09 UTC
2
+++ audio/out/ao_oss.c
3
@@ -387,8 +387,9 @@ static int reopen_device(struct ao *ao, 
4
         }
5
     }
6
 
7
-    ao->period_size = channels.num * af_fmt_to_bytes(format);
8
-    p->outburst -= p->outburst % ao->period_size; // round down
9
+    int sstride = channels.num * af_fmt_to_bytes(format);
10
+    p->outburst -= p->outburst % sstride; // round down
11
+    ao->period_size = p->outburst / sstride;
12
 
13
     return 0;
14
 

Return to bug 220920