mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 05:16:13 +00:00
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.
This commit is contained in:
parent
46cfbbe0c4
commit
0e3ee0f648
1 changed files with 2 additions and 1 deletions
|
@ -484,7 +484,8 @@ audioresample_event (GstBaseTransform * base, GstEvent * event)
|
||||||
case GST_EVENT_FLUSH_START:
|
case GST_EVENT_FLUSH_START:
|
||||||
break;
|
break;
|
||||||
case GST_EVENT_FLUSH_STOP:
|
case GST_EVENT_FLUSH_STOP:
|
||||||
resample_input_flush (audioresample->resample);
|
if (audioresample->resample)
|
||||||
|
resample_input_flush (audioresample->resample);
|
||||||
audioresample->ts_offset = -1;
|
audioresample->ts_offset = -1;
|
||||||
audioresample->next_ts = -1;
|
audioresample->next_ts = -1;
|
||||||
audioresample->offset = -1;
|
audioresample->offset = -1;
|
||||||
|
|
Loading…
Reference in a new issue