matroskamux: avoid creating caps from string when possible
authorMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
Fri, 14 Jan 2011 13:51:51 +0000 (14:51 +0100)
committerMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
Fri, 14 Jan 2011 15:25:14 +0000 (16:25 +0100)
Fixes #639516.

gst/matroska/matroska-mux.c

index 7da4e6f..7cea073 100644 (file)
@@ -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;