projects
/
platform
/
upstream
/
gst-plugins-good.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
44f09d7
)
wavparse: check for not NULL before clearing adapter
author
Rahul Bedarkar
<rahul.bedarkar@imgtec.com>
Mon, 9 Jan 2017 06:02:35 +0000
(11:32 +0530)
committer
Tim-Philipp Müller
<tim@centricular.com>
Wed, 25 Jan 2017 09:59:50 +0000
(09:59 +0000)
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
patch
|
blob
|
history
diff --git
a/gst/wavparse/gstwavparse.c
b/gst/wavparse/gstwavparse.c
index
9ee11fc
..
bafd4a7
100644
(file)
--- a/
gst/wavparse/gstwavparse.c
+++ b/
gst/wavparse/gstwavparse.c
@@
-2445,7
+2445,8
@@
gst_wavparse_sink_event (GstPad * pad, GstObject * parent, GstEvent * event)
{
GstClockTime dur;
- gst_adapter_clear (wav->adapter);
+ if (wav->adapter)
+ gst_adapter_clear (wav->adapter);
wav->discont = TRUE;
dur = wav->segment.duration;
gst_segment_init (&wav->segment, wav->segment.format);