diff --git a/gst/mpegtsmux/mpegtsmux.c b/gst/mpegtsmux/mpegtsmux.c index 580b64c089..e8da5b275f 100644 --- a/gst/mpegtsmux/mpegtsmux.c +++ b/gst/mpegtsmux/mpegtsmux.c @@ -241,7 +241,6 @@ mpegtsmux_init (MpegTsMux * mux, MpegTsMuxClass * g_class) mux->tsmux = tsmux_new (); tsmux_set_write_func (mux->tsmux, new_packet_cb, mux); - mux->programs = g_new0 (TsMuxProgram *, MAX_PROG_NUMBER); mux->first = TRUE; mux->last_flow_ret = GST_FLOW_OK; mux->adapter = gst_adapter_new (); @@ -281,10 +280,6 @@ mpegtsmux_dispose (GObject * object) gst_structure_free (mux->prog_map); mux->prog_map = NULL; } - if (mux->programs) { - g_free (mux->programs); - mux->programs = NULL; - } if (mux->streamheader) { GstBuffer *buf; GList *sh; diff --git a/gst/mpegtsmux/mpegtsmux.h b/gst/mpegtsmux/mpegtsmux.h index da2c9484e8..88e0b653ac 100644 --- a/gst/mpegtsmux/mpegtsmux.h +++ b/gst/mpegtsmux/mpegtsmux.h @@ -132,7 +132,7 @@ struct MpegTsMux { GstCollectPads2 *collect; TsMux *tsmux; - TsMuxProgram **programs; + TsMuxProgram *programs[MAX_PROG_NUMBER]; GstStructure *prog_map; gboolean first;