[Bug 734384] playbin: "convert-sample" returns a sample with an initial refCount of 2

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Wed Aug 6 15:38:24 PDT 2014


https://bugzilla.gnome.org/show_bug.cgi?id=734384
  GStreamer | gst-plugins-base | 1.2.1

Tim-Philipp Müller <t.i.m> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEEDINFO
            Summary|"convert-sample" returns a  |playbin: "convert-sample"
                   |sample with an initial      |returns a sample with an
                   |refCount of 2               |initial refCount of 2

--- Comment #1 from Tim-Philipp Müller <t.i.m at zen.co.uk> 2014-08-06 22:38:20 UTC ---
Thanks for the bug report and the test case to reproduce it.

I can't reproduce this myself with your test code, however. I've tried the tip
of the 1.2 branch (after 1.2.4) and git master.

I've added a

        if ( GST_STATE_CHANGE_FAILURE == gst_element_get_state ( pipeline,
NULL, NULL, -1 ) )
         {
            throw "Failed to preroll!";
        }

to your code after the gst_element_set_state ( pipeline, GST_STATE_PLAYING ) to
make it wait until prerolled.

There's one bug in your test program: GstSample is not a GstObject, it's a
GstMiniObject, hence the refcount should be queried using
GST_MINI_OBJECT_REFCOUNT_VALUE(frame) and not GST_OBJECT_REFCOUNT_VALUE(frame).

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list