[vlc-devel] [PATCH] es_out: improve readability
Zhao Zhili
quinkblack at foxmail.com
Fri Nov 17 10:11:29 CET 2017
---
src/input/es_out.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/input/es_out.c b/src/input/es_out.c
index 227f15f..bef0c49 100644
--- a/src/input/es_out.c
+++ b/src/input/es_out.c
@@ -900,8 +900,8 @@ static mtime_t EsOutGetBuffering( es_out_t *out )
i_system_duration = mdate() - i_system_start;
}
- const mtime_t i_consumed = i_system_duration *
INPUT_RATE_DEFAULT / p_sys->i_rate - i_stream_duration;
- i_delay = p_sys->i_pts_delay - i_consumed;
+ const mtime_t i_consumed = i_system_duration *
INPUT_RATE_DEFAULT / p_sys->i_rate;
+ i_delay = p_sys->i_pts_delay + i_stream_duration - i_consumed;
}
if( i_delay < 0 )
return 0;
--
2.7.4
More information about the vlc-devel
mailing list