Memory leak using clutter-gst

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Memory leak using clutter-gst

JayReddy
Hi all

Using clutter-gst I have created an actor which can play videos. But then I have been facing a problem of memory leak as the usage of memory goes on increasing along with the progress of the video.

Moreover it is taking much memory than other video players.

Can I have a solution how to reduce the usage of memory and the memory leak.

I am pasting the code which I have used.

ClutterActor *player= clutter_gst_video_texture_new();

clutter_media_set_filename (CLUTTER_MEDIA (player), argv[1]);

clutter_media_set_audio_volume (CLUTTER_MEDIA (player), 0.5);

clutter_media_set_playing(CLUTTER_MEDIA(player), TRUE);

clutter_container_add_actor(CLUTTER_CONTAINER(stage), player);
clutter_actor_show_all(stage);


Thanks in advance.

JayReddy
Reply | Threaded
Open this post in threaded view
|

Re: Memory leak using clutter-gst

Damien Lespiau
On Mon, Jun 14, 2010 at 9:23 AM, JayReddy <[hidden email]> wrote:
>
> Hi all

Hey,

> Using clutter-gst I have created an actor which can play videos. But then I
> have been facing a problem of memory leak as the usage of memory goes on
> increasing along with the progress of the video.

Clutter-gst does not seem to leak here. I've seen some GL drivers leak
before, the Intel mesa drivers from sometime last year (the one you
can find on Ubuntu 9.04 leaks, maybe the 9.10 one too). This does not
happen in the version of the drivers I have from Debian sid or Fedora
13).

clutter-gst is a very thin wrapper around playbin2 and uses a custom
sink to upload frames, The only ways it can leak massively is either:
    * leaking GstBuffers
    * the GL driver has a weird behaviour when creating/destroying a
lot of textures.

> Moreover it is taking much memory than other video players.

I can't see that here either and there's no reason why it would
consume much more memory than any other GStreamer-based player. The
memory usage you see is unlikely to be representative anyway as you
say you are leaking massively .

> Can I have a solution how to reduce the usage of memory and the memory leak.

Which platform/GPU/drivers are you using?

HTH,

--
Damien

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit.  See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel