Commit 3d26fc3d authored by Wim Taymans's avatar Wim Taymans
Browse files

theoraparse: set caps on streamheader too

parent 33e6fe44
......@@ -307,8 +307,6 @@ theora_parse_set_streamheader (GstTheoraParse * parse)
if (buf == NULL)
continue;
gst_buffer_set_caps (buf, GST_PAD_CAPS (parse->srcpad));
packet.packet = GST_BUFFER_DATA (buf);
packet.bytes = GST_BUFFER_SIZE (buf);
packet.granulepos = GST_BUFFER_OFFSET_END (buf);
......@@ -368,8 +366,12 @@ theora_parse_push_headers (GstTheoraParse * parse)
for (i = 0; i < 3; i++) {
GstBuffer *buf;
if ((buf = parse->streamheader[i]))
gst_pad_push (parse->srcpad, gst_buffer_ref (buf));
if ((buf = parse->streamheader[i])) {
buf = gst_buffer_make_metadata_writable (buf);
gst_buffer_set_caps (buf, GST_PAD_CAPS (parse->srcpad));
gst_pad_push (parse->srcpad, buf);
parse->streamheader[i] = NULL;
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment