[gstreamer-bugs] [Bug 503592] New: gstpad.c does many ref/unref of peer pad in dataflow

GStreamer (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Fri Dec 14 05:11:16 PST 2007


If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
  http://bugzilla.gnome.org/show_bug.cgi?id=503592

  GStreamer | gstreamer (core) | Ver: HEAD CVS
           Summary: gstpad.c does many ref/unref of peer pad in dataflow
           Product: GStreamer
           Version: HEAD CVS
          Platform: Other
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: gstreamer (core)
        AssignedTo: gstreamer-bugs at lists.sourceforge.net
        ReportedBy: ensonic at sonicpulse.de
         QAContact: gstreamer-bugs at lists.sourceforge.net
     GNOME version: Unspecified
   GNOME milestone: Unspecified


in
gst_pad_push, gst_pad_check_pull_range, gst_pad_pull_range
one can find code like below. this causes atomic ops for all the dataflow. To
give an idea - I added the GST_WARNING to count them and for a 2 min avi I got
91949 ref/unrefs.

GST_OBJECT_LOCK (pad);

if (G_UNLIKELY ((peer = GST_PAD_PEER (pad)) == NULL))
  goto not_linked;

gst_object_ref (peer);
GST_WARNING("!ref peer pad!");

GST_OBJECT_UNLOCK (pad);

ret = gst_pad_chain_unchecked (peer, buffer);

gst_object_unref (peer);


-- 
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.

You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=503592.




More information about the Gstreamer-bugs mailing list