From: Jan Schmidt Date: Fri, 14 Nov 2008 21:44:32 +0000 (+0000) Subject: gst/audioresample/gstaudioresample.c: Guard against a NULL dereference I somehow... X-Git-Tag: GIT_CONVERSION~168 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0e3ee0f648bd4e1a96dc86c26917da369ffa60b2;p=platform%2Fupstream%2Fgst-plugins-bad.git 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. --- diff --git a/gst/audioresample/gstaudioresample.c b/gst/audioresample/gstaudioresample.c index 5276220..1826849 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;