mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 01:30:38 +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)
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue