mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-07 07:58:51 +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 };
|
GTimeVal time = { 0, 0 };
|
||||||
GstBuffer *streamheader_buffer;
|
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 */
|
/* we start with a EBML header */
|
||||||
doctype = mux->doctype;
|
doctype = mux->doctype;
|
||||||
GST_INFO_OBJECT (ebml, "DocType: %s, Version: %d",
|
GST_INFO_OBJECT (ebml, "DocType: %s, Version: %d",
|
||||||
|
|
Loading…
Reference in a new issue