[Bug 762717] mpegtsmux: m2ts-mode crashes (abort)

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Thu Mar 17 17:14:19 UTC 2016


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

--- Comment #5 from Vincent Penquerc'h <vincent.penquerch at collabora.co.uk> ---
Right, some hack like this makes it work:

@@ -913,8 +914,15 @@ tsmux_section_write_packet (GstMpegtsSectionType * type,
     /* Prepend the header to the section data */
     gst_buffer_prepend_memory (packet_buffer, mem);

+{
+void *p = g_malloc(4);
+GstMemory *extra = gst_memory_new_wrapped (GST_MEMORY_FLAG_READONLY, p, 4, 0,
0, p, g_free);
+gst_buffer_append_memory (packet_buffer, extra);
+}
+
     TS_DEBUG ("Writing %d bytes to section. %d bytes remaining",
         len, section->pi.stream_avail - len);

I've no idea what m2ts mode is, but would something like that be an OK fix if
it was done only if the muxer is in m2ts mode ?

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