memory waste under certain circumstances

Markus Rechberger kontakt at sundtek.de
Thu Jul 25 09:15:55 PDT 2013


Hi Luca,

if possible contact us via Skype (sundtek). The information is not really
enough, if you write that you are using cat and piping it into your
application it doesn't really matter where the data comes from.
Can you run your application on a x86 PC with eg. valgrind?

Best Regards,
Markus
On Thu, 25 Jul 2013 17:48:57 +0200, Luca Santini
<luca.santini at spesonline.com> wrote:
> Hi,
> i'm using this code in my application (linked with gstreamer 0.10; can't

> try 1.0 on my platform...):
> 
> //---
>          snprintf(mypipeline,sizeof(mypipeline),
>          "fdsrc fd=0 ! tsdemux name=d program-number=%s ! "
>          "queue2 max-size-buffers=0 max-size-time=0 ! "
>          "mpeg2dec ! autovideosink d. ! "
>          "queue2 max-size-buffers=0 max-size-time=0 ! "
>          "mad ! alsasink sync=false "
>          ,sPids
>          );
>          pipeline = gst_parse_launch (mypipeline, NULL);
>          //...here there is code to put pipeline in PAUSE until 
> prerolled, then...
>          event_loop (pipeline, FALSE, GST_STATE_PLAYING);
> //---
> 
> fd0 is fed with 'cat /dev/dvb/adapter0/dvr0' (fork'd and pipe'd).
> 
> When using a Sundtek Media TV Pro dvb-t dongle,
> my app memory footprint keeps growing ~1MB/min !!! I'm on an embedded 
> system with ~512MB ram and after some hours i run out-of-memory!!!
> The very strange thing is that using a different DVB-T dongle (ITE 9005 
> ) this weird behaviour doesn't happens.
> 
> any hint?
> 
> p.s.: is there a way to free this wated memory after the pipeline is 
> unreferenced? (can't use gst_deinit because my app is supposed to launch

> other pipelines after.)

-- 
Sundtek
Markus Rechberger
Korsoerer Str. 18
D-10437 Berlin
Germany

Phone +4930/749 284 03
Fax +4932/21 1154 120


More information about the gstreamer-devel mailing list