[Bug 709826] mpegtsmux: performance issue

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Wed Mar 9 08:04:52 UTC 2016


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

--- Comment #29 from Alexander Vasiljev <alexvasiljev at gmail.com> ---
::: gst/mpegtsmux/mpegtsmux.c
@@ +1758,3 @@
+      pool_config = gst_buffer_pool_get_config (mux->pool);
+      gst_buffer_pool_config_set_params (pool_config, NULL,
+          188 * mux->alignment, 7, 0);

If alignment is -1 it will be just minimum preallocated buffers. It doesn't
hurt.
In gstbufferpool.c you can see this code 

  /* we need to prealloc buffers */
  for (i = 0; i < priv->min_buffers; i++) {
    GstBuffer *buffer;

So it will just not preallocate any buffer.

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