livesync: Fix #452
Compare changes
- Jan Alexander Steffens authored
Make it independent of the `latency`; this was inconsistent anyway, where the default latency of zero got you a fallback duration of 100 ms and something else got you half the latency. Maintain a separate duration for the `in` and the `out` side so we change the duration of repeat buffers after a caps change, not just before. Part-of: <!1372>
+ 36
− 37
@@ -36,6 +36,16 @@ fn audio_info_from_caps(
@@ -82,9 +92,6 @@ struct State {
@@ -118,6 +125,12 @@ struct State {
@@ -159,7 +172,9 @@ const PROP_OUT: &str = "out";
@@ -170,7 +185,6 @@ impl Default for State {
@@ -180,6 +194,8 @@ impl Default for State {
@@ -346,7 +362,6 @@ impl ObjectImpl for LiveSync {
@@ -488,31 +503,6 @@ impl State {
@@ -583,8 +573,8 @@ impl LiveSync {
@@ -592,6 +582,7 @@ impl LiveSync {
@@ -669,10 +660,12 @@ impl LiveSync {
@@ -890,13 +883,17 @@ impl LiveSync {
@@ -1071,7 +1068,6 @@ impl LiveSync {
@@ -1158,6 +1154,7 @@ impl LiveSync {
@@ -1305,7 +1302,9 @@ impl LiveSync {