[vlc-commits] preparser: fix playlist_preparser_Cancel loop
Thomas Guillem
git at videolan.org
Tue Jun 7 10:32:10 CEST 2016
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Tue Jun 7 10:30:35 2016 +0200| [f2a438d552560ecc1020d5060fddd6b47d255c4c] | committer: Thomas Guillem
preparser: fix playlist_preparser_Cancel loop
This may need a test finally...
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f2a438d552560ecc1020d5060fddd6b47d255c4c
---
src/playlist/preparser.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/playlist/preparser.c b/src/playlist/preparser.c
index c820d6a..8baf345 100644
--- a/src/playlist/preparser.c
+++ b/src/playlist/preparser.c
@@ -135,7 +135,7 @@ void playlist_preparser_Cancel( playlist_preparser_t *p_preparser, void *id )
vlc_mutex_lock( &p_preparser->lock );
/* Remove entries that match with the id */
- for( int i = p_preparser->i_waiting - 1; i >= 0; ++i )
+ for( int i = p_preparser->i_waiting - 1; i >= 0; --i )
{
preparser_entry_t *p_entry = p_preparser->pp_waiting[i];
if( p_entry->id == id )
More information about the vlc-commits
mailing list