AnsweredAssumed Answered

GStreamer video loop memory leak

Question asked by Marlon Smith on Feb 8, 2017
Latest reply on Feb 10, 2017 by Marlon Smith

Hi everyone,

 

I'm using kernel 3.14.28 and gstreamer1.0-plugins-imx_0.12.1 to play video, and I'm looping it using the about-to-finish signal of playbin.  When my application receives the signal, it sets the URI for playbin to the same file and the video loops seamlessly.

 

However, I'm getting a memory leak.  The application slowly uses more and more memory until the oom killer closes it.  Valgrind says memory is definitely lost but doesn't trace back further than g_malloc.

 

I've attached a copy of the test program here.  Any help is greatly appreciated!

 

Marlon

Original Attachment has been moved to: gsttest.cpp.zip

Original Attachment has been moved to: Makefile.zip

Original Attachment has been moved to: gsttest.h.zip

Outcomes