mpegtspacketizer: memset structure instead of individually setting fields to 0
This commit is contained in:
parent
69aab98702
commit
56b71d6a48
@ -1966,12 +1966,7 @@ mpegts_packetizer_clear_packet (MpegTSPacketizer * packetizer,
|
|||||||
{
|
{
|
||||||
if (packet->buffer)
|
if (packet->buffer)
|
||||||
gst_buffer_unref (packet->buffer);
|
gst_buffer_unref (packet->buffer);
|
||||||
packet->buffer = NULL;
|
memset (packet, 0, sizeof (MpegTSPacketizerPacket));
|
||||||
packet->continuity_counter = 0;
|
|
||||||
packet->payload_unit_start_indicator = 0;
|
|
||||||
packet->payload = NULL;
|
|
||||||
packet->data_start = NULL;
|
|
||||||
packet->data_end = NULL;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
gboolean
|
gboolean
|
||||||
|
Loading…
x
Reference in New Issue
Block a user