mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-12 18:35:35 +00:00
theoraparse: set caps on streamheader too
This commit is contained in:
parent
33e6fe44b2
commit
3d26fc3d8f
1 changed files with 6 additions and 4 deletions
|
@ -307,8 +307,6 @@ theora_parse_set_streamheader (GstTheoraParse * parse)
|
||||||
if (buf == NULL)
|
if (buf == NULL)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
gst_buffer_set_caps (buf, GST_PAD_CAPS (parse->srcpad));
|
|
||||||
|
|
||||||
packet.packet = GST_BUFFER_DATA (buf);
|
packet.packet = GST_BUFFER_DATA (buf);
|
||||||
packet.bytes = GST_BUFFER_SIZE (buf);
|
packet.bytes = GST_BUFFER_SIZE (buf);
|
||||||
packet.granulepos = GST_BUFFER_OFFSET_END (buf);
|
packet.granulepos = GST_BUFFER_OFFSET_END (buf);
|
||||||
|
@ -368,8 +366,12 @@ theora_parse_push_headers (GstTheoraParse * parse)
|
||||||
for (i = 0; i < 3; i++) {
|
for (i = 0; i < 3; i++) {
|
||||||
GstBuffer *buf;
|
GstBuffer *buf;
|
||||||
|
|
||||||
if ((buf = parse->streamheader[i]))
|
if ((buf = parse->streamheader[i])) {
|
||||||
gst_pad_push (parse->srcpad, gst_buffer_ref (buf));
|
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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue