wavparse: check for not NULL before clearing adapter
authorRahul Bedarkar <rahul.bedarkar@imgtec.com>
Mon, 9 Jan 2017 06:02:35 +0000 (11:32 +0530)
committerTim-Philipp Müller <tim@centricular.com>
Wed, 25 Jan 2017 09:59:50 +0000 (09:59 +0000)
commitf05c0c036e2ac7eec4ea06af20ec41b4bd265d75
tree6e5a6aa910959afe504fc0a358380d3cbd835afb
parent44f09d74ffc37978da85d915b82f7c64467d9f4e
wavparse: check for not NULL before clearing adapter

In case wavparse receives a manually injected FLUSH_STOP event
while operating in pull mode we get criticals because we'd try
to clear a NULL adapter.

https://bugzilla.gnome.org/show_bug.cgi?id=777123
gst/wavparse/gstwavparse.c