closedcaption: fix build error in OSX
authorJosep Torra <jtorra@oblong.com>
Fri, 22 Mar 2019 21:32:59 +0000 (22:32 +0100)
committerJosep Torra <jtorra@oblong.com>
Mon, 25 Mar 2019 17:28:55 +0000 (18:28 +0100)
commitdbef8c43e89c13e496e6ffbb85fef9d12431001f
tree4c8c3ae1b749f7cfd26aaf76407039aa6da25aaf
parente73280782ce1e0ca825272715a908cff55f9fa0a
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
ext/closedcaption/gstccconverter.c