[vlc-devel] [PATCH] es_out_timeshift: fix inverted logic
Zhao Zhili
quinkblack at foxmail.com
Sat Sep 8 12:41:58 CEST 2018
A test case:
vlc -vv --rate 0.5 ~/.local/share/vlc/ml.xspf
es_out_GetEmpty return false forever
---
src/input/es_out_timeshift.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/input/es_out_timeshift.c b/src/input/es_out_timeshift.c
index 245abefb24..b7440da467 100644
--- a/src/input/es_out_timeshift.c
+++ b/src/input/es_out_timeshift.c
@@ -922,7 +922,7 @@ static bool TsHasCmd( ts_thread_t *p_ts )
bool b_cmd;
vlc_mutex_lock( &p_ts->lock );
- b_cmd = TsStorageIsEmpty( p_ts->p_storage_r );
+ b_cmd = !TsStorageIsEmpty( p_ts->p_storage_r );
vlc_mutex_unlock( &p_ts->lock );
return b_cmd;
--
2.19.0.rc1
More information about the vlc-devel
mailing list