[vlc-commits] webvtt: cast enum-to-enum explicitly
Rémi Denis-Courmont
git at videolan.org
Wed Feb 5 22:07:54 CET 2020
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Feb 5 23:06:53 2020 +0200| [0abc31e5398c720954d4d09923b524a701d45663] | committer: Rémi Denis-Courmont
webvtt: cast enum-to-enum explicitly
Fixes:
modules/codec/webvtt/webvtt.c:155:33: warning: implicit conversion from ‘enum <anonymous>’ to ‘enum webvtt_header_line_e’
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0abc31e5398c720954d4d09923b524a701d45663
---
modules/codec/webvtt/webvtt.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/modules/codec/webvtt/webvtt.c b/modules/codec/webvtt/webvtt.c
index 02513f2fb8..7793d1e61b 100644
--- a/modules/codec/webvtt/webvtt.c
+++ b/modules/codec/webvtt/webvtt.c
@@ -152,7 +152,8 @@ void webvtt_text_parser_Delete( webvtt_text_parser_t *p )
static void forward_line( webvtt_text_parser_t *p, const char *psz_line, bool b_new )
{
if( p->pf_header )
- p->pf_header( p->priv, p->section, b_new, psz_line );
+ p->pf_header( p->priv, (enum webvtt_header_line_e)p->section,
+ b_new, psz_line );
}
void webvtt_text_parser_Feed( webvtt_text_parser_t *p, char *psz_line )
More information about the vlc-commits
mailing list