mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 07:16:55 +00:00
matroskamux: avoid creating caps from string when possible
Fixes #639516.
This commit is contained in:
parent
a49a248fff
commit
0124302b58
1 changed files with 2 additions and 2 deletions
|
@ -2025,9 +2025,9 @@ gst_matroska_mux_start (GstMatroskaMux * mux)
|
|||
GTimeVal time = { 0, 0 };
|
||||
|
||||
if (!strcmp (mux->doctype, GST_MATROSKA_DOCTYPE_WEBM)) {
|
||||
ebml->caps = gst_caps_from_string ("video/webm");
|
||||
ebml->caps = gst_caps_new_simple ("video/webm", NULL);
|
||||
} else {
|
||||
ebml->caps = gst_caps_from_string ("video/x-matroska");
|
||||
ebml->caps = gst_caps_new_simple ("video/x-matroska", NULL);
|
||||
}
|
||||
/* we start with a EBML header */
|
||||
doctype = mux->doctype;
|
||||
|
|
Loading…
Reference in a new issue