[Bug 745506] New: [mpegtsmux] duplicate code

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Tue Mar 3 01:36:09 PST 2015


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

            Bug ID: 745506
           Summary: [mpegtsmux] duplicate code
    Classification: Platform
           Product: GStreamer
           Version: git master
                OS: All
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: gst-plugins-bad
          Assignee: gstreamer-bugs at lists.freedesktop.org
          Reporter: averyanovin at gmail.com
        QA Contact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---

Created attachment 298392
  --> https://bugzilla.gnome.org/attachment.cgi?id=298392&action=edit
Patch

http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/tree/gst/mpegtsmux/mpegtsmux.c#n315
call
mux->tsmux = tsmux_new ();
tsmux_set_write_func (mux->tsmux, new_packet_cb, mux);

in
http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/tree/gst/mpegtsmux/mpegtsmux.c#n330
call
mpegtsmux_reset
which also call
 mux->tsmux = tsmux_new ();
 tsmux_set_write_func (mux->tsmux, new_packet_cb, mux);

mpegtsmux_reset always free mux->tsmux.
but we can free only in mpegtsmux_dispose.

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