It was not working for me, because I was using 0.10 v of gstreamer.If there is not a constraint to use 0.10 version of gstreamer
, please use 1.2 version of gstreamer.
However, in v 0.10 the flushing seek generally works as a substitute to flush the pipeline.
While using 1.2v, the two APIs gst_event_new_flush_start ()
and gst_event_new_flush_stop ()
work. In that case you can use the flush directly.
In either way you should be able to flush. Make an internal API where you do a flushing seek and use it as your flush API.
There is a post in gstreamer-devel mailing listwhich has talked about behavior of flush in the two versions.