[vlc-devel] [PATCH v2 2/5] preparser: force initialization of b_preparse_interact
Alexandre Janniaux
ajanni at videolabs.io
Fri Feb 7 22:04:46 CET 2020
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 | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/preparser/preparser.c b/src/preparser/preparser.c
index 723feb96dc..c317478a9c 100644
--- a/src/preparser/preparser.c
+++ b/src/preparser/preparser.c
@@ -268,8 +268,8 @@ 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) != 0;
vlc_mutex_unlock( &item->lock );
switch( i_type )
--
2.25.0
More information about the vlc-devel
mailing list