if (dest[i] == 0x47 && dest[i + packetsize] == 0x47 &&
dest[i + packetsize * 2] == 0x47 &&
dest[i + packetsize * 3] == 0x47) {
+ gchar *str;
packetizer->know_packet_size = TRUE;
packetizer->packet_size = packetsize;
+ str =
+ g_strdup_printf
+ ("video/mpegts, systemstream=(boolean)true, packetsize=%d",
+ packetsize);
+ packetizer->caps = gst_caps_from_string ((const gchar *) str);
+ g_free (str);
pos = i;
break;
}
guint16 pid;
GstBuffer *buffer;
GstFlowReturn ret;
- GstCaps *caps;
GList *srcpads;
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_buffer_set_caps (buffer, parse->packetizer->caps);
GST_OBJECT_LOCK (parse);
/* clear tspad->pushed on pads */