mpegts_packetizer_init (MpegTSPacketizer * packetizer)
{
packetizer->adapter = gst_adapter_new ();
- packetizer->streams = g_new0 (MpegTSPacketizerStream *, 8192);
+ memset (packetizer->streams, 0, 8192);
packetizer->know_packet_size = FALSE;
}
if (packetizer->streams[i])
mpegts_packetizer_stream_free (packetizer->streams[i]);
}
- g_free (packetizer->streams);
}
gst_adapter_clear (packetizer->adapter);
GstAdapter *adapter;
/* streams hashed by pid */
- MpegTSPacketizerStream **streams;
+ MpegTSPacketizerStream *streams[8192];
gboolean disposed;
gboolean know_packet_size;
guint16 packet_size;