From: Mark Nauwelaerts Date: Fri, 14 Jan 2011 13:51:51 +0000 (+0100) Subject: matroskamux: avoid creating caps from string when possible X-Git-Tag: RELEASE-0.10.27~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0124302b58c2c575245bcec36cc9d12dd75761e1;p=platform%2Fupstream%2Fgst-plugins-good.git matroskamux: avoid creating caps from string when possible Fixes #639516. --- diff --git a/gst/matroska/matroska-mux.c b/gst/matroska/matroska-mux.c index 7da4e6f..7cea073 100644 --- a/gst/matroska/matroska-mux.c +++ b/gst/matroska/matroska-mux.c @@ -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;