From 0e3ee0f648bd4e1a96dc86c26917da369ffa60b2 Mon Sep 17 00:00:00 2001 From: Jan Schmidt Date: Fri, 14 Nov 2008 21:44:32 +0000 Subject: 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. --- gst/audioresample/gstaudioresample.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gst/audioresample') 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; -- cgit v1.2.1