From 56b71d6a488c1a6cb820afdf8111f9caa6f1fe20 Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Tue, 15 Sep 2009 23:09:21 +0200 Subject: [PATCH] mpegtspacketizer: memset structure instead of individually setting fields to 0 --- gst/mpegdemux/mpegtspacketizer.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/gst/mpegdemux/mpegtspacketizer.c b/gst/mpegdemux/mpegtspacketizer.c index 37f90906c5..aea41ba86e 100644 --- a/gst/mpegdemux/mpegtspacketizer.c +++ b/gst/mpegdemux/mpegtspacketizer.c @@ -1966,12 +1966,7 @@ mpegts_packetizer_clear_packet (MpegTSPacketizer * packetizer, { if (packet->buffer) gst_buffer_unref (packet->buffer); - packet->buffer = NULL; - packet->continuity_counter = 0; - packet->payload_unit_start_indicator = 0; - packet->payload = NULL; - packet->data_start = NULL; - packet->data_end = NULL; + memset (packet, 0, sizeof (MpegTSPacketizerPacket)); } gboolean