[vlc-commits] es_out_timeshift: Remove duplicated check
Hugo Beauzée-Luyssen
git at videolan.org
Wed Nov 22 18:03:39 CET 2017
vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Wed Nov 22 17:59:07 2017 +0100| [c6cc3c609996e7210d5d63a17acbe4cadf77e56a] | committer: Hugo Beauzée-Luyssen
es_out_timeshift: Remove duplicated check
p_storage_r != NULL is already implied by the earlier call to TsStorageIsEmpty
CID #1048960
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c6cc3c609996e7210d5d63a17acbe4cadf77e56a
---
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 722932c28d..c6dd83ebb8 100644
--- a/src/input/es_out_timeshift.c
+++ b/src/input/es_out_timeshift.c
@@ -894,7 +894,7 @@ static int TsPopCmdLocked( ts_thread_t *p_ts, ts_cmd_t *p_cmd, bool b_flush )
TsStoragePopCmd( p_ts->p_storage_r, p_cmd, b_flush );
- while( p_ts->p_storage_r && TsStorageIsEmpty( p_ts->p_storage_r ) )
+ while( TsStorageIsEmpty( p_ts->p_storage_r ) )
{
ts_storage_t *p_next = p_ts->p_storage_r->p_next;
if( !p_next )
More information about the vlc-commits
mailing list