? .svn
? patch
Index: mpegtsparse.c
===================================================================
RCS file: /cvs/gstreamer/gst-plugins-bad/gst/mpegtsparse/mpegtsparse.c,v
retrieving revision 1.19
diff -p -r1.19 mpegtsparse.c
*** mpegtsparse.c	9 May 2008 10:21:07 -0000	1.19
--- mpegtsparse.c	20 Jun 2008 14:33:56 -0000
*************** mpegts_parse_push (MpegTSParse * parse, 
*** 710,721 ****
    guint16 pid;
    GstBuffer *buffer;
    GstFlowReturn ret;
  
    pid = packet->pid;
    buffer = packet->buffer;
    /* we have the same caps on all the src pads */
!   gst_buffer_set_caps (buffer,
!       gst_static_pad_template_get_caps (&src_template));
  
    GST_OBJECT_LOCK (parse);
    /* clear tspad->pushed on pads */
--- 710,723 ----
    guint16 pid;
    GstBuffer *buffer;
    GstFlowReturn ret;
+   GstCaps *caps;
  
    pid = packet->pid;
    buffer = packet->buffer;
    /* we have the same caps on all the src pads */
!   caps = gst_static_pad_template_get_caps (&src_template);
!   gst_buffer_set_caps (buffer, caps);
!   gst_caps_unref(caps);
  
    GST_OBJECT_LOCK (parse);
    /* clear tspad->pushed on pads */
*************** mpegts_parse_apply_pmt (MpegTSParse * pa
*** 1011,1018 ****
    }
  
    gst_element_post_message (GST_ELEMENT_CAST (parse),
!       gst_message_new_element (GST_OBJECT (parse),
!           gst_structure_copy (pmt_info)));
  }
  
  static void
--- 1013,1019 ----
    }
  
    gst_element_post_message (GST_ELEMENT_CAST (parse),
!       gst_message_new_element (GST_OBJECT (parse), pmt_info));
  }
  
  static void
*************** mpegts_parse_apply_nit (MpegTSParse * pa
*** 1020,1027 ****
      guint16 pmt_pid, GstStructure * nit_info)
  {
    gst_element_post_message (GST_ELEMENT_CAST (parse),
!       gst_message_new_element (GST_OBJECT (parse),
!           gst_structure_copy (nit_info)));
  }
  
  static void
--- 1021,1027 ----
      guint16 pmt_pid, GstStructure * nit_info)
  {
    gst_element_post_message (GST_ELEMENT_CAST (parse),
!       gst_message_new_element (GST_OBJECT (parse), nit_info));
  }
  
  static void
*************** mpegts_parse_apply_sdt (MpegTSParse * pa
*** 1029,1036 ****
      guint16 pmt_pid, GstStructure * sdt_info)
  {
    gst_element_post_message (GST_ELEMENT_CAST (parse),
!       gst_message_new_element (GST_OBJECT (parse),
!           gst_structure_copy (sdt_info)));
  }
  
  static void
--- 1029,1035 ----
      guint16 pmt_pid, GstStructure * sdt_info)
  {
    gst_element_post_message (GST_ELEMENT_CAST (parse),
!       gst_message_new_element (GST_OBJECT (parse), sdt_info));
  }
  
  static void
*************** mpegts_parse_apply_eit (MpegTSParse * pa
*** 1038,1045 ****
      guint16 pmt_pid, GstStructure * eit_info)
  {
    gst_element_post_message (GST_ELEMENT_CAST (parse),
!       gst_message_new_element (GST_OBJECT (parse),
!           gst_structure_copy (eit_info)));
  }
  
  static gboolean
--- 1037,1043 ----
      guint16 pmt_pid, GstStructure * eit_info)
  {
    gst_element_post_message (GST_ELEMENT_CAST (parse),
!       gst_message_new_element (GST_OBJECT (parse), eit_info));
  }
  
  static gboolean
