mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-02 12:32:29 +00:00
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
This commit is contained in:
parent
44f09d74ff
commit
f05c0c036e
1 changed files with 2 additions and 1 deletions
|
@ -2445,6 +2445,7 @@ gst_wavparse_sink_event (GstPad * pad, GstObject * parent, GstEvent * event)
|
|||
{
|
||||
GstClockTime dur;
|
||||
|
||||
if (wav->adapter)
|
||||
gst_adapter_clear (wav->adapter);
|
||||
wav->discont = TRUE;
|
||||
dur = wav->segment.duration;
|
||||
|
|
Loading…
Reference in a new issue