[vlc-commits] es_out_timeshift: fix inverted logic
Zhao Zhili
git at videolan.org
Wed Sep 12 12:06:10 CEST 2018
vlc | branch: master | Zhao Zhili <quinkblack at foxmail.com> | Sat Sep 8 18:41:58 2018 +0800| [80f1e7235b7b6a769e6924ed96c739b62f7e3385] | committer: Thomas Guillem
es_out_timeshift: fix inverted logic
A test case:
vlc -vv --rate 0.5 ~/.local/share/vlc/ml.xspf
es_out_GetEmpty return false forever
Signed-off-by: Thomas Guillem <thomas at gllm.fr>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=80f1e7235b7b6a769e6924ed96c739b62f7e3385
---
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;
More information about the vlc-commits
mailing list