mpegtspacketizer: simplify variable reset
authorThiago Santos <thiagoss@osg.samsung.com>
Thu, 3 Mar 2016 14:31:01 +0000 (11:31 -0300)
committerThiago Santos <thiagoss@osg.samsung.com>
Thu, 24 Mar 2016 14:06:55 +0000 (11:06 -0300)
Just set it directly to 0, instead of checking and reseting

gst/mpegtsdemux/mpegtspacketizer.c

index db3b7417dba1b3fd15716cc3be8435b6057b4c76..a7e079880c56769a3ae20ec529c28f57082fbf91 100644 (file)
@@ -558,8 +558,7 @@ mpegts_packetizer_clear (MpegTSPacketizer2 * packetizer)
 {
   guint i;
 
-  if (packetizer->packet_size)
-    packetizer->packet_size = 0;
+  packetizer->packet_size = 0;
 
   if (packetizer->streams) {
     int i;