From 1aa6c129e38b9561753e7bff0db978e73aa505dd Mon Sep 17 00:00:00 2001 From: Mark Nauwelaerts Date: Thu, 31 May 2007 22:33:26 +0000 Subject: [PATCH] gst/dvdsub/gstdvdsubdec.c: Clear state when handling the serialized FLUSH_STOP event instead of the FLUSH_START event... Original commit message from CVS: Patch by: Mark Nauwelaerts * gst/dvdsub/gstdvdsubdec.c: (gst_dvd_sub_dec_sink_event): Clear state when handling the serialized FLUSH_STOP event instead of the FLUSH_START event, thereby making sure we don't free buffers the chain function is still using. Fixes dvdsubdec crashing when flusing or seeking (#442706). --- ChangeLog | 10 ++++++++++ gst/dvdsub/gstdvdsubdec.c | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 1d51463411..90cea0693a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2007-05-31 Tim-Philipp Müller + + Patch by: Mark Nauwelaerts + + * gst/dvdsub/gstdvdsubdec.c: (gst_dvd_sub_dec_sink_event): + Clear state when handling the serialized FLUSH_STOP event instead of + the FLUSH_START event, thereby making sure we don't free buffers the + chain function is still using. Fixes dvdsubdec crashing when flusing + or seeking (#442706). + 2007-05-23 Tim-Philipp Müller * gst/mpegaudioparse/gstmpegaudioparse.c: (gst_mp3parse_chain): diff --git a/gst/dvdsub/gstdvdsubdec.c b/gst/dvdsub/gstdvdsubdec.c index cc19a632f8..0cb88164ab 100644 --- a/gst/dvdsub/gstdvdsubdec.c +++ b/gst/dvdsub/gstdvdsubdec.c @@ -870,7 +870,7 @@ gst_dvd_sub_dec_sink_event (GstPad * pad, GstEvent * event) } break; } - case GST_EVENT_FLUSH_START:{ + case GST_EVENT_FLUSH_STOP:{ /* Turn off forced highlight display */ dec->forced_display = 0; dec->current_button = 0;