[gst-devel] FLUSHING event in avidemux

Ronald S. Bultje R.S.Bultje at students.uu.nl
Sun May 9 09:03:03 CEST 2004


Hi Sebastien,

On Fri, 2004-05-07 at 21:28, Sebastien Cote wrote:
> When reading the avi, riff-read seeks in the input
> file which causes the filesrc to send a FLUSHING
> event.  riff then does a gst_pad_event_default() on
> the sinkpad of the avidemux which pushes it to the
> next element in the pipeline.  But this event
> shouldn't leave the avidemux since we're not really
> seeking in the media. If there's a queue in the
> pipeline, it will empty itself when it receives this
> event.
> 
> So I intercepted the FLUSHING event in riff-read.c to
> get rid of it.  It works, but I think this could break
> REAL seeking.
> 
> Does anyone know what the correct fix is?

Check avidemux->state (probably needs to be moved to riff->state), and
don't forward flush events if we're != GST_AVI_DEMUX_MOVI (should be
renamed GST_RIFF_READ_DATA).

Please make a bug report, and I'll try to fix it one of the next few
days.

Ronald





More information about the gstreamer-devel mailing list