lame: Avoid crash when seeking before negotiating
authorThiago Santos <thiago.sousa.santos@collabora.co.uk>
Wed, 2 Dec 2009 14:21:22 +0000 (11:21 -0300)
committerThiago Santos <thiago.sousa.santos@collabora.co.uk>
Wed, 2 Dec 2009 14:34:34 +0000 (11:34 -0300)
commit82ab87032d46ca92eb4262e2340dffb0d7fad15e
tree7acfcfc492ba0fabd2581f9bdaae0bb1ec64bcdb
parent21177487d9bce29577ae24beffaa0c26f26a6197
lame: Avoid crash when seeking before negotiating

lame's 'lgv' variable is only initialized when the caps
is negotiated, whenever a seek happens before that, it would
attempt to call a function on an empty pointer, causing the crash.

Fixes #603515
ext/lame/gstlame.c
ext/lame/gstlamemp3enc.c