[Bug 709826] mpegtsmux: performance issue

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Wed Mar 9 07:57:30 UTC 2016


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

--- Comment #28 from Alexander Vasiljev <alexvasiljev at gmail.com> ---
It doesn't break m2ts-mode, because in this mode we use
gst_buffer_new_and_alloc. So this mode is just not optimal.

static void
alloc_packet_cb (GstBuffer ** _buf, void *user_data)
{
  MpegTsMux *mux = (MpegTsMux *) user_data;
  GstBuffer *buf;
  gint offset = 0;

  if (mux->m2ts_mode == TRUE) {
    offset = 4;

    buf = gst_buffer_new_and_alloc (NORMAL_TS_PACKET_LENGTH + offset);
    gst_buffer_set_size (buf, NORMAL_TS_PACKET_LENGTH);
  } else {
    gst_buffer_pool_acquire_buffer (mux->pool, &buf, NULL);
  }
  *_buf = buf;
}

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