summaryrefslogtreecommitdiffstats
path: root/gst/audioresample
diff options
context:
space:
mode:
authorJan Schmidt <thaytan@mad.scientist.com>2008-11-14 21:44:32 +0000
committerJan Schmidt <thaytan@mad.scientist.com>2008-11-14 21:44:32 +0000
commit0e3ee0f648bd4e1a96dc86c26917da369ffa60b2 (patch)
treeb13805051295d3dce4e71895812f460220d98e10 /gst/audioresample
parent46cfbbe0c4acd0a0da6a20cd050bbc19b83a417f (diff)
downloadgst-plugins-bad-0e3ee0f648bd4e1a96dc86c26917da369ffa60b2.tar.gz
gst-plugins-bad-0e3ee0f648bd4e1a96dc86c26917da369ffa60b2.tar.bz2
gst-plugins-bad-0e3ee0f648bd4e1a96dc86c26917da369ffa60b2.zip
gst/audioresample/gstaudioresample.c: Guard against a NULL dereference I somehow encountered - with a FLUSH_STOP arri...
Original commit message from CVS: * gst/audioresample/gstaudioresample.c: Guard against a NULL dereference I somehow encountered - with a FLUSH_STOP arriving either before basetransform _start(), or after _stop(). * gst/typefind/gsttypefindfunctions.c: Make sure we never jump backwards when typefinding corrupt mov files.
Diffstat (limited to 'gst/audioresample')
-rw-r--r--gst/audioresample/gstaudioresample.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gst/audioresample/gstaudioresample.c b/gst/audioresample/gstaudioresample.c
index 52762202..1826849b 100644
--- a/gst/audioresample/gstaudioresample.c
+++ b/gst/audioresample/gstaudioresample.c
@@ -484,7 +484,8 @@ audioresample_event (GstBaseTransform * base, GstEvent * event)
case GST_EVENT_FLUSH_START:
break;
case GST_EVENT_FLUSH_STOP:
- resample_input_flush (audioresample->resample);
+ if (audioresample->resample)
+ resample_input_flush (audioresample->resample);
audioresample->ts_offset = -1;
audioresample->next_ts = -1;
audioresample->offset = -1;