mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-17 21:06:17 +00:00
closedcaption: fix build error in OSX
Fixes the following error. gstccconverter.c:677:7: error: variable 'len' is used uninitialized whenever 'if' condition is false [-Werror,-Wsometimes-uninitialized] if (flags & 0x40) { ^~~~~~~~~~~~ gstccconverter.c:698:10: note: uninitialized use occurs here return len; ^~~ gstccconverter.c:677:3: note: remove the 'if' if its condition is always true if (flags & 0x40) { ^~~~~~~~~~~~~~~~~~ gstccconverter.c:572:12: note: initialize the variable 'len' to silence this warning guint len; ^ = 0
This commit is contained in:
parent
e73280782c
commit
dbef8c43e8
1 changed files with 1 additions and 1 deletions
|
@ -569,7 +569,7 @@ convert_cea708_cdp_cea708_cc_data_internal (GstCCConverter * self,
|
|||
guint8 u8;
|
||||
guint8 flags;
|
||||
gint fps_n, fps_d;
|
||||
guint len;
|
||||
guint len = 0;
|
||||
|
||||
memset (tc, 0, sizeof (*tc));
|
||||
|
||||
|
|
Loading…
Reference in a new issue