[Bug 682483] New: fakesink bad default properties

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Wed Aug 22 08:10:31 PDT 2012


https://bugzilla.gnome.org/show_bug.cgi?id=682483
  GStreamer | gstreamer (core) | 0.10.x

           Summary: fakesink bad default properties
    Classification: Platform
           Product: GStreamer
           Version: 0.10.x
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: gstreamer (core)
        AssignedTo: gstreamer-bugs at lists.freedesktop.org
        ReportedBy: lfarkas at lfarkas.org
         QAContact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---


while we try to find the huge load of our system we find out the biggest load
was caused by fakesink. and the reason for this was the "silent" properties by
default false. 
the reason is very tricky and hidden. we use java (gstreamer-java to control
gstreamer pipelines).
- silent false produce last_message events
- which in turn for all buffers (video frames) add a reference to the pipeline
- which cause 2 call. 1 g_object_add_toggle_ref and 1
g_object_remove_toggle_ref 
- which is cause a call to the proxy object ie. a 2 callback from C->java
- which is on jna an attach and a detach from the calling thread and create 2
new Thread java object 
- which is cause that the gc called all these objects. and there are many! eg
in case of 32 pipelines and 25 fps video:  32 x 2 x 25 = 1600 object creation
and gc in every sec!!!

of course we can simple set the properties to true, but imho it's real big
waste of time and resource most of the case. imho all elements all properties
should have to be the most "natural" default values (where natural means less
resource hungry).

so my suggestion to set the default to true.

ps. anyway it takes many days to us to find the reason since it was very
difficult to find out the real reason which we not even assume.

-- 
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