[vlc-commits] es_out_timeshift: fix inverted logic
Zhao Zhili
git at videolan.org
Wed Mar 31 10:00:24 UTC 2021
vlc/vlc-3.0 | branch: master | Zhao Zhili <quinkblack at foxmail.com> | Sat Sep 8 18:41:58 2018 +0800| [6977abc430a889e19348a55533884bad2c6b1fa5] | committer: Jean-Baptiste Kempf
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>
(cherry picked from commit 80f1e7235b7b6a769e6924ed96c739b62f7e3385)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=6977abc430a889e19348a55533884bad2c6b1fa5
---
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 e30f923958..bfa9697e95 100644
--- a/src/input/es_out_timeshift.c
+++ b/src/input/es_out_timeshift.c
@@ -913,7 +913,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