[gst-devel] Dropping buffers when pausing live stream

Arnout Vandecappelle arnout at mind.be
Fri Oct 9 18:40:58 CEST 2009

 Hoi all,

 My application is displaying live media that comes in over http or rtsp.  
Sometimes the stream has to be paused (because it is invisible and I don't 
want to waste CPU cycles on decoding).  However, simply pausing the pipeline 
will eventually disconnect the source because of overflowing socket buffers.  
Also, when playing again, I don't want to render a second of old data.

 The solution I had in mind is to port the dropping behaviour of queue to 
multiqueue.  Then I pause the sink elements, which makes the queues fill up 
and triggers the dropping.  When playing again, there is still a bit of stale 
data but it is recent stale data (and probably rendering delay will cause some 
more data to be dropped in the near future).

 Does this sound like a good idea?  Anybody have a better idea?


Arnout Vandecappelle                               arnout at mind be
Senior Embedded Software Architect                 +32-16-286540
Essensium/Mind                                     http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium                BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  D206 D44B 5155 DF98 550D  3F2A 2213 88AA A1C7 C933

More information about the gstreamer-devel mailing list