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 747915 - glmixer: fix caps leaks
glmixer: fix caps leaks
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
git master
Other Linux
: Normal normal
: 1.5.1
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2015-04-15 13:21 UTC by Guillaume Desmottes
Modified: 2015-04-20 08:07 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
glmixer: fix caps leak in gst_gl_mixer_pad_sink_getcaps() (1.87 KB, patch)
2015-04-15 13:24 UTC, Guillaume Desmottes
none Details | Review
glmixer: fix caps leak in gst_gl_mixer_pad_sink_getcaps() (1.84 KB, patch)
2015-04-15 14:53 UTC, Guillaume Desmottes
none Details | Review
glmixer: unref owned caps when finalizing the mixer (1020 bytes, patch)
2015-04-16 12:29 UTC, Guillaume Desmottes
committed Details | Review
glmixer: fix caps leak in gst_gl_mixer_pad_sink_getcaps() (1.94 KB, patch)
2015-04-20 07:55 UTC, Guillaume Desmottes
committed Details | Review

Description Guillaume Desmottes 2015-04-15 13:21:55 UTC
.
Comment 1 Guillaume Desmottes 2015-04-15 13:24:39 UTC
Created attachment 301628 [details] [review]
glmixer: fix caps leak in gst_gl_mixer_pad_sink_getcaps()

Caps refcounting was all wrong in this function. Rewrote it and add some
comments to make it clearer.

Fix caps leaks with the
validate.file.glvideomixer.simple.play_15s.synchronized scenario.

https://bugzilla.gnome.org/show_bug.cgi?id=747915

Signed-off-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Comment 2 Guillaume Desmottes 2015-04-15 14:53:49 UTC
Created attachment 301647 [details] [review]
glmixer: fix caps leak in gst_gl_mixer_pad_sink_getcaps()

Caps refcounting was all wrong in this function. Rewrote it and add some
comments to make it clearer.

Fix caps leaks with the
validate.file.glvideomixer.simple.play_15s.synchronized scenario.

https://bugzilla.gnome.org/show_bug.cgi?id=747915

Signed-off-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Comment 3 Guillaume Desmottes 2015-04-16 12:29:23 UTC
Created attachment 301727 [details] [review]
glmixer: unref owned caps when finalizing the mixer

Fix a caps leak with the
validate.file.glvideomixer.simple.play_15s.synchronized scenario.

https://bugzilla.gnome.org/show_bug.cgi?id=747915

Signed-off-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Comment 4 Vincent Penquerc'h 2015-04-17 13:33:49 UTC
commit fae93514e4d71ec16a14c36646d9f209cea6da1f
Author: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Date:   Thu Apr 16 14:21:16 2015 +0200

    glmixer: unref owned caps when finalizing the mixer
    
    Fix a caps leak with the
    validate.file.glvideomixer.simple.play_15s.synchronized scenario.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=747915
    
    Signed-off-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Comment 5 Vincent Penquerc'h 2015-04-17 13:40:30 UTC
Review of attachment 301647 [details] [review]:

::: ext/gl/gstglmixer.c
@@ +242,1 @@
   returned_caps = gst_caps_intersect (filtered_caps, template_caps);

Here, I think template_caps is possibly invalid, as it lost its ref in the previous new call to gst_caps_merge (if sinkcaps != NULL).
Comment 6 Guillaume Desmottes 2015-04-20 07:55:32 UTC
Created attachment 301974 [details] [review]
glmixer: fix caps leak in gst_gl_mixer_pad_sink_getcaps()

Caps refcounting was all wrong in this function. Rewrote it and add some
comments to make it clearer.

Fix caps leaks with the
validate.file.glvideomixer.simple.play_15s.synchronized scenario.

https://bugzilla.gnome.org/show_bug.cgi?id=747915

Signed-off-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Comment 7 Vincent Penquerc'h 2015-04-20 08:07:34 UTC
Thanks, pushed

commit ac5e25937b23b55d0e13372fa408167e20cc5dd4
Author: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Date:   Wed Apr 15 15:22:37 2015 +0200

    glmixer: fix caps leak in gst_gl_mixer_pad_sink_getcaps()
    
    Caps refcounting was all wrong in this function. Rewrote it and add some
    comments to make it clearer.
    
    Fix caps leaks with the
    validate.file.glvideomixer.simple.play_15s.synchronized scenario.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=747915
    
    Signed-off-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>