After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 794249 - BaseTransform::transform_vfunc leaks
BaseTransform::transform_vfunc leaks
Status: RESOLVED FIXED
Product: gstreamermm
Classification: Bindings
Component: general
git master
Other Linux
: Normal normal
: ---
Assigned To: gstreamermm-maint
gstreamermm-maint
Depends on:
Blocks:
 
 
Reported: 2018-03-12 08:51 UTC by Manuel Weichselbaumer
Modified: 2018-04-14 16:10 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Test code (2.93 KB, text/plain)
2018-03-12 08:52 UTC, Manuel Weichselbaumer
Details

Description Manuel Weichselbaumer 2018-03-12 08:51:57 UTC
When implementing a custom filter (inheriting AudioFilter) the transform_vfunc function leaks. Maybe an issue with refcounting the buffers...

See attached example.
Comment 1 Manuel Weichselbaumer 2018-03-12 08:52:38 UTC
Created attachment 369564 [details]
Test code
Comment 2 Marcin Kolny (IRC: loganek) 2018-04-14 15:25:37 UTC
Hi Manuel,
Thanks a lot for your report. Sorry it took so long to fix it. The problem was copy_metadata_vfunc. I've fixed it (https://git.gnome.org/browse/gstreamermm/commit/?id=4d1efb14d2e99b7525f222a561bb1eb9f4576026) so you can use latest master branch.

This problem has been fixed in the unstable development version. The fix will be available in the next major software release. You may need to upgrade your Linux distribution to obtain that newer version.
Comment 3 Manuel Weichselbaumer 2018-04-14 16:10:44 UTC
Hi Marcin,
thanks for fixing this. Good to know, that this project is still alive, since I appreciate this C++ API a lot. It is much nicer than the original gstreamer API, i have to say.