mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
matroskamux: make sure pads caps are set before any buffers pushed.
This commit is contained in:
parent
7c402d5866
commit
b4e6fcd051
1 changed files with 11 additions and 0 deletions
|
@ -2007,6 +2007,17 @@ gst_matroska_mux_start (GstMatroskaMux * mux)
|
|||
GTimeVal time = { 0, 0 };
|
||||
GstBuffer *streamheader_buffer;
|
||||
|
||||
/* set initial pad caps */
|
||||
{
|
||||
GstCaps *caps;
|
||||
if (!strcmp (mux->doctype, GST_MATROSKA_DOCTYPE_WEBM)) {
|
||||
caps = gst_caps_from_string ("video/webm");
|
||||
} else {
|
||||
caps = gst_caps_from_string ("video/x-matroska");
|
||||
}
|
||||
gst_pad_set_caps (mux->srcpad, caps);
|
||||
gst_caps_unref (caps);
|
||||
}
|
||||
/* we start with a EBML header */
|
||||
doctype = mux->doctype;
|
||||
GST_INFO_OBJECT (ebml, "DocType: %s, Version: %d",
|
||||
|
|
Loading…
Reference in a new issue