[vlc-devel] [PATCH 2/6] preparser: force initialization of b_preparse_interact

Alexandre Janniaux ajanni at videolabs.io
Tue Dec 3 17:02:23 CET 2019


b_preparse_interact is only initialized here and has no default value,
so it needs to be initialized here even when the flag is not present.
---
 src/preparser/preparser.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/preparser/preparser.c b/src/preparser/preparser.c
index 723feb96dc..4564026a37 100644
--- a/src/preparser/preparser.c
+++ b/src/preparser/preparser.c
@@ -268,8 +268,7 @@ void input_preparser_Push( input_preparser_t *preparser,
     vlc_mutex_lock( &item->lock );
     enum input_item_type_e i_type = item->i_type;
     int b_net = item->b_net;
-    if( i_options & META_REQUEST_OPTION_DO_INTERACT )
-        item->b_preparse_interact = true;
+    item->b_preparse_interact = i_options & META_REQUEST_OPTION_DO_INTERACT;
     vlc_mutex_unlock( &item->lock );
 
     switch( i_type )
-- 
2.24.0



More information about the vlc-devel mailing list