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)
commit4f7d1a2ed57d2f6b2a1f3505292e1545a274ca08
tree032a7f0e11a31b517578fb7a46128fb0ceb001e3
parent98acc9703b957827afbb7bab81c57c671e02e74b
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