mpegtsparse: Fix 'variable 'pid' is uninitialized when used here' compiler warning
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Tue, 6 Mar 2012 13:44:25 +0000 (14:44 +0100)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Tue, 6 Mar 2012 13:44:25 +0000 (14:44 +0100)
gst/mpegdemux/mpegtsparse.c

index 273b3edd40c25a79ef7cb382c489c838f30a8c60..af50984fa7334e5b177a8a17e0266b32079b2cb9 100644 (file)
@@ -222,11 +222,9 @@ mpegts_parse_base_init (gpointer klass)
 {
   GstElementClass *element_class = GST_ELEMENT_CLASS (klass);
 
-  gst_element_class_add_static_pad_template (element_class,
-      &sink_template);
+  gst_element_class_add_static_pad_template (element_class, &sink_template);
   gst_element_class_add_static_pad_template (element_class, &src_template);
-  gst_element_class_add_static_pad_template (element_class,
-      &program_template);
+  gst_element_class_add_static_pad_template (element_class, &program_template);
 
   gst_element_class_set_details_simple (element_class,
       "MPEG transport stream parser", "Codec/Parser",
@@ -1041,7 +1039,7 @@ mpegts_parse_apply_pmt (MpegTSParse * parse,
   MpegTSParseProgram *program;
   guint program_number;
   guint pcr_pid;
-  guint pid;
+  guint pid = 0;
   guint stream_type;
   GstStructure *stream;
   gint i;